26 lines
429 B
YAML
26 lines
429 B
YAML
kind: pipeline
|
|
type: docker
|
|
name: build
|
|
|
|
steps:
|
|
- name: build
|
|
image: 'golang:1-alpine'
|
|
commands:
|
|
- go build -x .
|
|
|
|
- name: publish-docker
|
|
image: plugins/docker
|
|
settings:
|
|
username:
|
|
from_secret: DOCKER_LOGIN
|
|
password:
|
|
from_secret: DOCKER_TOKEN
|
|
repo:
|
|
from_secret: DOCKER_REPO
|
|
tags:
|
|
- ${DRONE_TAG}
|
|
- latest
|
|
when:
|
|
event:
|
|
- tag
|