godns/.drone.yml

38 lines
672 B
YAML
Raw Normal View History

2019-06-02 20:52:51 +00:00
kind: pipeline
name: amd64
2021-04-15 03:44:56 +00:00
type: docker
2019-06-02 20:52:51 +00:00
steps:
- name: test
image: golang:alpine
commands:
2021-04-15 05:09:34 +00:00
- go test ./...
- name: build
image: golang:alpine
volumes:
- name: build
path: /build
commands:
- go build -o /build/godns
2019-06-02 20:52:51 +00:00
- name: docker
image: plugins/docker
volumes:
- name: build
path: /build
2019-06-02 20:52:51 +00:00
settings:
username:
from_secret: docker_username
password:
from_secret: docker_password
repo: registry.meow.tf/joker/godns
registry: registry.meow.tf
tags:
- amd64-latest
when:
branch:
- master
volumes:
- name: build
temp: {}