2024-03-08 02:26:27 +00:00
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: build
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: build
|
|
|
|
image: 'golang:alpine'
|
|
|
|
commands:
|
|
|
|
- go build -x .
|
|
|
|
|
2024-03-10 02:19:50 +00:00
|
|
|
- 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
|