drone-yaml-server/.drone.yml

24 lines
455 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:
repo: garionion/drone-yaml-server
debug: true
password:
from_secret: docker_password
username:
from_secret: docker_username
tags:
- latest