drone-yaml-server/.drone.yml
garionion e8dc0f846f
All checks were successful
continuous-integration/drone/push Build is passing
maybe this will work
2021-08-15 17:03:51 +02:00

26 lines
507 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: techknowlogick/drone-docker:latest
privileged: true
settings:
auto_tag: true
auto_tag_suffix: linux-amd64
repo: garionion/drone-yaml-server
debug: true
password:
from_secret: docker_password
username:
from_secret: docker_username
tags:
- latest