drone-kaniko/.drone.yml

36 lines
565 B
YAML
Raw Normal View History

---
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
- name: docker-publish
2020-11-19 20:27:09 +01:00
image: plugins/docker
settings:
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
trigger:
ref:
- refs/heads/dev
...