Add .drone.yml
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
wanderer 2022-04-01 21:16:02 +02:00 committed by surtur
parent 9ca7d23791
commit b57ba52efc
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D

62
.drone.yml Normal file
View File

@ -0,0 +1,62 @@
---
kind: pipeline
type: docker
name: testing
platform:
os: linux
arch: amd64
steps:
- name: hadolint
pull: always
image: hadolint/hadolint:v2.9.3-alpine
commands:
- hadolint --version
- hadolint Containerfile
when:
ref:
- refs/heads/master
- "refs/heads/feature-**"
- "refs/pull/**"
- "refs/tags/**"
event:
exclude: [cron]
- name: kaniko-build
pull: always
image: plugins/kaniko:1.4.4-linux-amd64-kaniko1.8.0
settings:
dockerfile: Containerfile
context: .
no-push: true
when:
ref:
- "refs/heads/feature-**"
- "refs/pull/**"
- "refs/tags/**"
event:
exclude: [cron]
- name: kaniko-publish
pull: always
image: plugins/kaniko:1.4.4-linux-amd64-kaniko1.8.0
settings:
dockerfile: Containerfile
context: .
tags:
- linux-amd64
- ${DRONE_COMMIT_SHA:0:8}
registry: git.dotya.ml
repo: wanderer/kaniko-testing
username:
from_secret: username
password:
from_secret: token
when:
ref:
- refs/heads/master
event:
exclude: [pull_request, tag]
trigger:
event: [push, pull_request, cron, tag]