drone-yaml-server/.drone.yml

25 lines
519 B
YAML
Raw Normal View History

2021-08-08 10:37:18 +02:00
kind: pipeline
type: docker
name: default
steps:
- name: build
image: golang
commands:
- CGO_ENABLED=0 GOOS=linux go build -a -ldflags '-extldflags "-static"' .
2021-08-08 10:37:18 +02:00
- go test ./...
- name: publish
2021-08-15 01:00:01 +02:00
image: plugins/docker:latest
settings:
auto_tag: true
auto_tag_suffix: linux-amd64
daemon_off: false
debug: true
privileged: true
dockerfile: Dockerfile
2021-08-08 10:37:18 +02:00
password:
from_secret: docker_password
2021-08-15 01:00:01 +02:00
repo: garionion/drone-yaml-server
username:
from_secret: docker_username