2019-06-02 20:52:51 +00:00
|
|
|
kind: pipeline
|
|
|
|
name: amd64
|
|
|
|
|
|
|
|
platform:
|
|
|
|
os: linux
|
|
|
|
arch: amd64
|
|
|
|
|
|
|
|
steps:
|
2020-01-25 17:51:20 +00:00
|
|
|
- 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
|
2020-01-25 17:51:20 +00:00
|
|
|
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
|
2020-01-25 17:51:20 +00:00
|
|
|
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:
|
2020-01-25 17:51:20 +00:00
|
|
|
- dockerconfigjson
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
branch:
|
|
|
|
- master
|