drone-yaml-server/.drone.yml

24 lines
455 B
YAML
Raw Permalink 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 15:52:09 +02:00
image: techknowlogick/drone-docker:latest
privileged: true
2021-08-15 01:00:01 +02:00
settings:
repo: garionion/drone-yaml-server
2021-08-15 15:52:09 +02:00
debug: true
2021-08-15 02:51:21 +02:00
password:
from_secret: docker_password
2021-08-15 15:52:09 +02:00
username:
from_secret: docker_username
2021-08-15 02:51:21 +02:00
tags:
2021-08-15 15:52:09 +02:00
- latest