drone-yaml-server/.drone.yml
garionion 2f14d6e1cc
Some checks failed
continuous-integration/drone/push Build is failing
switch to kaniko plugin
2021-08-15 03:01:19 +02:00

23 lines
441 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: banzaicloud/drone-kaniko
settings:
repo: garionion/drone-yaml-server
username:
from_secret: docker_username
password:
from_secret: docker_password
build_args:
- --force
tags:
- latest