Skip to content

Instantly share code, notes, and snippets.

@tboerger
Created October 9, 2019 12:20
Show Gist options
  • Select an option

  • Save tboerger/b4e9368467e138b93a962c90a384c36e to your computer and use it in GitHub Desktop.

Select an option

Save tboerger/b4e9368467e138b93a962c90a384c36e to your computer and use it in GitHub Desktop.
Drone YAML example
kind: pipeline
type: docker
name: linux
platform:
arch: amd64
os: linux
steps:
- name: test
image: golang:1.13
commands:
- go test ./...
- name: build
image: golang:1.13
commands:
- go build
- name: publish
image: plugins/docker
settings:
auto_tag: true
auto_tag_suffix: linux-amd64
repo: octocat/hello
username:
from_secret: docker_username
password:
from_secret: docker_password
when:
event:
- push
- tag
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment