2021-04-21 02:14:05 +02:00
|
|
|
---
|
2020-11-19 20:27:09 +01:00
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: default
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: build
|
|
|
|
image: golang
|
|
|
|
commands:
|
|
|
|
- go test ./...
|
|
|
|
- sh scripts/build.sh
|
|
|
|
|
2021-04-21 02:14:05 +02:00
|
|
|
- name: docker-publish
|
2020-11-19 20:27:09 +01:00
|
|
|
image: plugins/docker
|
|
|
|
settings:
|
2021-04-21 02:14:05 +02:00
|
|
|
repo: immawanderer/drone-kaniko
|
|
|
|
tags:
|
|
|
|
- linux-amd64
|
|
|
|
- ${DRONE_COMMIT_SHA:0:8}
|
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
|
|
|
|
2021-03-19 13:16:22 +01:00
|
|
|
trigger:
|
|
|
|
ref:
|
2021-04-21 02:14:05 +02:00
|
|
|
- refs/heads/dev
|
2021-03-19 13:16:22 +01:00
|
|
|
|
2021-04-21 02:14:05 +02:00
|
|
|
...
|