This commit is contained in:
parent
35f7621de2
commit
2c55c0c591
69
.drone.yml
Normal file
69
.drone.yml
Normal file
@ -0,0 +1,69 @@
|
||||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: testing
|
||||
|
||||
platform:
|
||||
os: linux
|
||||
arch: amd64
|
||||
|
||||
steps:
|
||||
- name: hadolint
|
||||
pull: always
|
||||
image: ghcr.io/hadolint/hadolint:v2.10.0-alpine
|
||||
commands:
|
||||
- hadolint --version
|
||||
- hadolint Containerfile
|
||||
when:
|
||||
ref:
|
||||
- refs/heads/development
|
||||
- refs/heads/feature-**
|
||||
- refs/pull/**
|
||||
- refs/tags/**
|
||||
event:
|
||||
exclude: [cron]
|
||||
|
||||
- name: kaniko-build
|
||||
pull: always
|
||||
image: docker.io/immawanderer/drone-kaniko:linux-amd64
|
||||
settings:
|
||||
dockerfile: Containerfile
|
||||
context: .
|
||||
args:
|
||||
- BUILD_DATE="$(date -u +"%Y-%m-%dT%H:%M:%SZ")"
|
||||
- VCS_REF=${DRONE_COMMIT_SHA:0:7}
|
||||
when:
|
||||
ref:
|
||||
- refs/heads/feature-**
|
||||
- refs/pull/**
|
||||
- refs/tags/**
|
||||
event:
|
||||
exclude: [cron]
|
||||
|
||||
- name: kaniko-publish
|
||||
pull: always
|
||||
image: docker.io/immawanderer/drone-kaniko:linux-amd64
|
||||
settings:
|
||||
dockerfile: Containerfile
|
||||
context: .
|
||||
args:
|
||||
- BUILD_DATE="$(date -u +"%Y-%m-%dT%H:%M:%SZ")"
|
||||
- VCS_REF=${DRONE_COMMIT_SHA:0:7}
|
||||
tags:
|
||||
- latest
|
||||
- linux-amd64
|
||||
- ${DRONE_COMMIT_SHA:0:8}
|
||||
repo: immawanderer/archlinux-go
|
||||
username:
|
||||
from_secret: dh_username
|
||||
password:
|
||||
from_secret: dh_token
|
||||
when:
|
||||
ref:
|
||||
- refs/heads/development
|
||||
event:
|
||||
exclude: [pull_request, tag]
|
||||
|
||||
trigger:
|
||||
event: [push, pull_request, cron, tag]
|
||||
...
|
@ -1,5 +1,6 @@
|
||||
# archlinux-go
|
||||
[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white)](https://github.com/pre-commit/pre-commit)
|
||||
[![Build Status](https://drone.dotya.ml/api/badges/wanderer-containers/archlinux-go/status.svg)](https://drone.dotya.ml/wanderer-containers/archlinux-go)
|
||||
|
||||
this repo provides a Containerfile for building Go applications.
|
||||
based on `docker.io/immawanderer/archlinux`, weekly rebuilt on cron.
|
||||
|
Loading…
Reference in New Issue
Block a user