drone-yaml-server/.drone.yml
garionion ca8deef8d8
Some checks failed
continuous-integration/drone/push Build is failing
didnt work -.-
2021-08-15 01:06:49 +02:00

31 lines
629 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: plugins/docker:latest
volumes:
- name: docker_socket
path: /var/run/docker.sock
settings:
auto_tag: true
auto_tag_suffix: linux-amd64
daemon_off: false
dockerfile: Dockerfile
password:
from_secret: docker_password
repo: garionion/drone-yaml-server
username:
from_secret: docker_username
volumes:
- name: docker_socket
host:
path: /var/run/docker.sock