docker-fedora-distcc/.drone.yml

69 lines
1.5 KiB
YAML
Raw Normal View History

2022-01-19 19:07:15 +01:00
---
kind: pipeline
type: docker
name: testing
platform:
os: linux
arch: amd64
steps:
2022-03-22 22:58:28 +01:00
- name: hadolint
pull: always
image: hadolint/hadolint:v2.9.3-alpine
2022-03-22 22:58:28 +01:00
commands:
- hadolint --version
- hadolint Dockerfile
when:
ref:
- refs/heads/development
- "refs/heads/feature-**"
- "refs/pull/**"
- "refs/tags/**"
event:
exclude: [cron]
2022-01-19 19:07:15 +01:00
2022-03-22 22:58:28 +01:00
- name: kaniko-build
pull: always
image: immawanderer/drone-kaniko:linux-amd64
settings:
dockerfile: Dockerfile
context: .
args:
- BUILD_DATE="$(date -u +"%Y-%m-%dT%H:%M:%SZ")"
- VCS_REF=${DRONE_COMMIT_SHA:0:7}
when:
ref:
# essentially build only feature branches/PRs and tags
2022-03-22 22:58:28 +01:00
- "refs/heads/feature-**"
- "refs/pull/**"
- "refs/tags/**"
event:
exclude: [cron]
2022-01-19 19:07:15 +01:00
2022-03-22 22:58:28 +01:00
- name: kaniko-publish
pull: always
image: immawanderer/drone-kaniko:linux-amd64
settings:
dockerfile: Dockerfile
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/fedora-distcc
username:
from_secret: docker_username
password:
from_secret: docker_password
when:
ref:
- refs/heads/development
event:
exclude: [pull_request, tag]
trigger:
event: [push, pull_request, cron, tag]