godns/.drone.yml

38 lines
670 B
YAML

kind: pipeline
name: amd64
type: docker
steps:
- name: test
image: golang:alpine
commands:
- go test ...
- name: build
image: golang:alpine
volumes:
- name: build
path: /build
commands:
- go build -o /build/godns
- name: docker
image: plugins/docker
volumes:
- name: build
path: /build
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: {}