kaniko-testing/.drone.yml

63 lines
1.1 KiB
YAML
Raw Normal View History

2022-04-01 21:16:02 +02:00
---
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]