drone-yaml-server/.drone.yml

21 lines
407 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 02:51:21 +02:00
image: garionion/drone-kaniko
2021-08-15 01:00:01 +02:00
settings:
repo: garionion/drone-yaml-server
username:
2021-08-15 02:51:21 +02:00
from_secret: docker_username
password:
from_secret: docker_password
tags:
- latest