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:
|
2021-04-15 05:04:58 +00:00
|
|
|
- name: test
|
|
|
|
image: golang:alpine
|
|
|
|
commands:
|
|
|
|
- go test ...
|
2020-01-25 17:51:20 +00:00
|
|
|
- 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
|
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: {}
|