2024-04-19 14:32:53 +00:00
|
|
|
steps:
|
|
|
|
- name: build-binary-UT-lin/amd64
|
|
|
|
image: golang:latest
|
|
|
|
commands:
|
|
|
|
- go get -v -d ./...
|
|
|
|
- go build -a -installsuffix cgo -o linux-amd64 .
|
|
|
|
|
2024-04-20 13:18:50 +00:00
|
|
|
- name: build-docker-lt-linux-amd64/arm64/armv6
|
2024-04-19 14:32:53 +00:00
|
|
|
image: woodpeckerci/plugin-docker-buildx:3
|
|
|
|
settings:
|
2024-04-19 18:04:38 +00:00
|
|
|
platforms: linux/amd64,linux/arm/v6,linux/arm64/v8
|
2024-04-19 14:36:34 +00:00
|
|
|
repo: git.hackmi.ch/phil/goshorly
|
2024-04-19 14:32:53 +00:00
|
|
|
registry: git.hackmi.ch
|
|
|
|
tags: latest
|
|
|
|
username:
|
|
|
|
from_secret: reg-user
|
|
|
|
password:
|
|
|
|
from_secret: reg-pass
|
|
|
|
build_args:
|
|
|
|
- CI_COMMIT_BRANCH=${CI_COMMIT_BRANCH}
|
2024-04-19 14:54:09 +00:00
|
|
|
- CI_COMMIT_SHORT_SHA=${CI_COMMIT_SHA:0:10}
|
2024-04-19 14:32:53 +00:00
|
|
|
depends_on:
|
|
|
|
- build-binary-UT-lin/amd64
|
|
|
|
when:
|
|
|
|
- event: push
|
|
|
|
branch: main
|
2024-04-20 19:17:04 +00:00
|
|
|
- event: cron
|
2024-04-19 14:32:53 +00:00
|
|
|
|
|
|
|
services:
|
|
|
|
docker:
|
|
|
|
image: docker:24-dind
|
|
|
|
commands:
|
|
|
|
- dockerd --tls=false --host=tcp://0.0.0.0:2376
|
|
|
|
privileged: true
|
|
|
|
when:
|
|
|
|
- event: push
|
|
|
|
branch: main
|
2024-04-20 19:17:04 +00:00
|
|
|
- event: cron
|
2024-04-19 14:32:53 +00:00
|
|
|
|
|
|
|
depends_on:
|
|
|
|
- 1-check
|