goshorly/.woodpecker/2-build-latest.yml
Phil 6ed7b73ca4
All checks were successful
ci/woodpecker/push/1-check Pipeline was successful
ci/woodpecker/push/2-build-latest Pipeline was successful
.woodpecker/2-build-latest.yml aktualisiert
2024-10-04 21:14:40 +00:00

41 lines
No EOL
984 B
YAML

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