36 lines
572 B
YAML
36 lines
572 B
YAML
---
|
|
kind: pipeline
|
|
type: docker
|
|
name: default
|
|
|
|
steps:
|
|
- name: build
|
|
image: golang:1.17.7
|
|
commands:
|
|
- go test ./...
|
|
- sh scripts/build.sh
|
|
|
|
- name: docker-publish
|
|
image: plugins/docker
|
|
settings:
|
|
repo: immawanderer/drone-kaniko
|
|
tags:
|
|
- linux-amd64
|
|
- ${DRONE_COMMIT_SHA:0:8}
|
|
daemon_off: false
|
|
dockerfile: docker/docker/Dockerfile.linux.amd64
|
|
username:
|
|
from_secret: docker_username
|
|
password:
|
|
from_secret: docker_password
|
|
when:
|
|
event:
|
|
exclude:
|
|
- pull_request
|
|
|
|
trigger:
|
|
ref:
|
|
- refs/heads/dev
|
|
|
|
...
|