2021-01-06 01:49:03 +01:00
|
|
|
---
|
|
|
|
kind: pipeline
|
2021-01-14 01:44:45 +01:00
|
|
|
type: docker
|
2021-04-23 01:42:09 +02:00
|
|
|
name: testing
|
2021-01-06 01:49:03 +01:00
|
|
|
|
|
|
|
platform:
|
|
|
|
os: linux
|
|
|
|
arch: amd64
|
|
|
|
|
|
|
|
steps:
|
2021-04-23 01:42:09 +02:00
|
|
|
- name: hadolint
|
2021-01-06 01:49:03 +01:00
|
|
|
pull: always
|
2021-04-23 01:42:09 +02:00
|
|
|
image: hadolint/hadolint:v1.23.0-8-gb01c5a9-alpine
|
2021-01-06 01:49:03 +01:00
|
|
|
commands:
|
2021-04-23 01:42:09 +02:00
|
|
|
- hadolint --version
|
|
|
|
- hadolint Dockerfile
|
|
|
|
when:
|
|
|
|
ref:
|
|
|
|
- refs/heads/master
|
|
|
|
- "refs/heads/feature-**"
|
|
|
|
- "refs/pull/**"
|
|
|
|
- "refs/tags/**"
|
|
|
|
event:
|
|
|
|
exclude: [cron]
|
|
|
|
|
|
|
|
- name: kaniko-build
|
2021-01-14 01:46:55 +01:00
|
|
|
pull: always
|
2021-05-02 01:52:56 +02:00
|
|
|
image: immawanderer/drone-kaniko:linux-amd64
|
2021-01-14 01:46:55 +01:00
|
|
|
settings:
|
|
|
|
dockerfile: Dockerfile
|
|
|
|
context: .
|
2021-04-23 01:42:09 +02:00
|
|
|
when:
|
|
|
|
ref:
|
|
|
|
- "refs/heads/feature-**"
|
|
|
|
- "refs/pull/**"
|
|
|
|
- "refs/tags/**"
|
|
|
|
event:
|
|
|
|
exclude: [cron]
|
|
|
|
|
|
|
|
- name: kaniko-publish
|
|
|
|
pull: always
|
2021-05-02 01:52:56 +02:00
|
|
|
image: immawanderer/drone-kaniko:linux-amd64
|
2021-04-23 01:42:09 +02:00
|
|
|
settings:
|
|
|
|
dockerfile: Dockerfile
|
|
|
|
context: .
|
|
|
|
tags:
|
|
|
|
- latest
|
|
|
|
- linux-amd64
|
|
|
|
- ${DRONE_COMMIT_SHA:0:8}
|
|
|
|
repo: immawanderer/alpine-android
|
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
|
|
|
when:
|
|
|
|
ref:
|
|
|
|
- refs/heads/master
|
|
|
|
event:
|
|
|
|
exclude: [pull_request, tag]
|
|
|
|
trigger:
|
|
|
|
event: [push, pull_request, cron, tag]
|
2021-01-14 01:46:55 +01:00
|
|
|
|