drone-yaml-server/.drone.yml
garionion b14c0f299f
Some checks reported errors
continuous-integration/drone/push Build was killed
build docker image manual
2021-08-15 00:52:48 +02:00

22 lines
497 B
YAML

kind: pipeline
type: docker
name: default
steps:
- name: build
image: golang
commands:
- CGO_ENABLED=0 GOOS=linux go build -a -ldflags '-extldflags "-static"' .
- go test ./...
- name: publish
image: docker:20
environment:
username:
from_secret: docker_username
password:
from_secret: docker_password
commands:
- docker login -u $username --password $password
- docker build --tag drone-yaml-server:latest $PWD
- docker push drone-yaml-server:latest