2021-09-27 07:31:36 +02:00
|
|
|
kind: pipeline
|
2022-12-07 15:42:15 +01:00
|
|
|
type: vm
|
2021-09-27 07:31:36 +02:00
|
|
|
name: default
|
|
|
|
|
2022-12-07 15:42:15 +01:00
|
|
|
platform:
|
|
|
|
os: linux
|
|
|
|
arch: amd64
|
|
|
|
pool:
|
|
|
|
use: ubuntu
|
|
|
|
|
2021-09-27 07:31:36 +02:00
|
|
|
steps:
|
|
|
|
- name: build
|
2022-12-07 15:42:15 +01:00
|
|
|
image: golang:1.19
|
2021-09-27 07:31:36 +02:00
|
|
|
commands:
|
|
|
|
- go test ./...
|
|
|
|
- sh scripts/build.sh
|
|
|
|
|
|
|
|
- name: publish
|
|
|
|
image: plugins/docker
|
|
|
|
pull: if-not-exists
|
|
|
|
settings:
|
|
|
|
repo: plugins/github-actions
|
|
|
|
auto_tag: true
|
|
|
|
dockerfile: docker/Dockerfile.linux.amd64
|
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
password:
|
2022-12-22 19:24:48 +01:00
|
|
|
from_secret: docker_password
|
|
|
|
when:
|
|
|
|
event:
|
2022-12-22 19:33:29 +01:00
|
|
|
- tag
|