godns/.drone.yml

65 lines
1.2 KiB
YAML
Raw Normal View History

2019-06-02 20:52:51 +00:00
kind: pipeline
name: amd64
platform:
os: linux
arch: amd64
steps:
- name: build
image: golang:alpine
volumes:
- name: build
path: /build
commands:
- apk --no-cache add git gcc musl-dev
- 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: {}
2019-06-02 20:52:51 +00:00
---
kind: pipeline
name: manifest
steps:
- name: manifest
image: registry.meow.tf/docker/tools/manifest-tool:amd64-latest
environment:
DOCKER_USERNAME:
from_secret: docker_username
DOCKER_PASSWORD:
from_secret: docker_password
DOCKER_REGISTRY:
from_secret: docker_registry
commands:
- docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD $DOCKER_REGISTRY
- /usr/bin/manifest-tool push from-spec manifest.yml
depends_on:
- amd64
image_pull_secrets:
- dockerconfigjson
trigger:
branch:
- master