drone-yaml-server/.drone.yml
garionion 1c444086dd
Some checks failed
continuous-integration/drone/push Build is failing
link static
enable debug output for docker image build
2021-08-14 20:20:44 +02:00

21 lines
409 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: plugins/docker
settings:
auto_tag: true
repo: garionion/drone-yaml-server
username:
from_secret: docker_username
password:
from_secret: docker_password
debug: true