This commit is contained in:
parent
9ca7d23791
commit
b57ba52efc
62
.drone.yml
Normal file
62
.drone.yml
Normal 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]
|
Loading…
Reference in New Issue
Block a user