drone-kaniko/.drone.yml

115 lines
2.1 KiB
YAML
Raw Normal View History

2020-11-19 20:27:09 +01:00
kind: pipeline
type: docker
name: default
steps:
- name: build
image: golang:1.17.2
2020-11-19 20:27:09 +01:00
commands:
- go test ./...
- sh scripts/build.sh
- name: docker
image: plugins/docker
settings:
repo: plugins/kaniko
auto_tag: true
2021-01-29 19:39:22 +01:00
auto_tag_suffix: linux-amd64
2021-03-02 16:45:44 +01:00
daemon_off: false
2020-11-25 19:12:56 +01:00
dockerfile: docker/docker/Dockerfile.linux.amd64
2020-11-19 20:27:09 +01:00
username:
from_secret: docker_username
password:
from_secret: docker_password
2021-01-29 19:39:22 +01:00
when:
event:
2021-03-02 16:45:44 +01:00
exclude:
- pull_request
2020-11-19 20:27:09 +01:00
- name: gcr
image: plugins/docker
settings:
repo: plugins/kaniko-gcr
auto_tag: true
2021-01-29 19:39:22 +01:00
auto_tag_suffix: linux-amd64
2021-03-02 16:45:44 +01:00
daemon_off: false
2020-11-19 20:27:09 +01:00
dockerfile: docker/gcr/Dockerfile.linux.amd64
username:
from_secret: docker_username
password:
from_secret: docker_password
2021-01-29 19:39:22 +01:00
when:
event:
2021-03-02 16:45:44 +01:00
exclude:
- pull_request
2020-11-19 20:27:09 +01:00
- name: ecr
image: plugins/docker
settings:
repo: plugins/kaniko-ecr
auto_tag: true
2021-01-29 19:39:22 +01:00
auto_tag_suffix: linux-amd64
2021-03-02 16:45:44 +01:00
daemon_off: false
2020-11-19 20:27:09 +01:00
dockerfile: docker/ecr/Dockerfile.linux.amd64
username:
from_secret: docker_username
password:
from_secret: docker_password
2021-01-29 19:39:22 +01:00
when:
event:
2021-03-02 16:45:44 +01:00
exclude:
- pull_request
---
kind: pipeline
type: docker
name: notifications-docker
platform:
os: linux
arch: amd64
steps:
- name: manifest-docker
pull: always
image: plugins/manifest
settings:
auto_tag: true
ignore_missing: true
password:
from_secret: docker_password
spec: docker/docker/manifest.tmpl
username:
from_secret: docker_username
- name: manifest-gcr
pull: always
image: plugins/manifest
settings:
auto_tag: true
ignore_missing: true
password:
from_secret: docker_password
spec: docker/gcr/manifest.tmpl
username:
from_secret: docker_username
- name: manifest-ecr
pull: always
image: plugins/manifest
settings:
auto_tag: true
ignore_missing: true
password:
from_secret: docker_password
spec: docker/ecr/manifest.tmpl
username:
from_secret: docker_username
trigger:
ref:
- refs/heads/main
- "refs/tags/**"
depends_on:
- default