[CI Workflow] Improvments for next releses and logic #11

Merged
Phil merged 13 commits from phil-patch-2 into main 2025-04-07 17:41:42 +00:00
2 changed files with 41 additions and 0 deletions
Showing only changes of commit 2f6a83e246 - Show all commits

View file

@ -0,0 +1,41 @@
steps:
- name: prod/build-binary/linux-amd64
image: golang:1.24.2
environment:
GOOS: "linux"
GOARCH: "amd64"
I_PACKAGE: "git.hackmi.ch/Phil/goshorly/utils"
CGO_ENABLED: 0
commands:
- go build -a -installsuffix cgo -ldflags=" -X $I_PACKAGE.CI_COMMIT_SHA=$CI_COMMIT_SHA -X $I_PACKAGE.CI_COMMIT_BRANCH=$CI_COMMIT_BRANCH -X $I_PACKAGE.CI_COMMIT_TAG=$CI_COMMIT_TAG" -o app-linux-amd64 .
- name: prod/build-binary/linux-arm64
image: golang:1.24.2
environment:
GOOS: "linux"
GOARCH: "arm64"
I_PACKAGE: "git.hackmi.ch/Phil/goshorly/utils"
CGO_ENABLED: 0
commands:
- go build -a -installsuffix cgo -ldflags=" -X $I_PACKAGE.CI_COMMIT_SHA=$CI_COMMIT_SHA -X $I_PACKAGE.CI_COMMIT_BRANCH=$CI_COMMIT_BRANCH -X $I_PACKAGE.CI_COMMIT_TAG=$CI_COMMIT_TAG" -o app-linux-arm64 .
- name: prod/build-docker/linux-multiarch
image: woodpeckerci/plugin-docker-buildx:5.2.2
settings:
platforms: linux/amd64,linux/arm64
repo: git.hackmi.ch/phil/goshorly
registry: git.hackmi.ch
auto_tag: true
username:
from_secret: reg-user
password:
from_secret: reg-pass
depends_on:
- prod/build-binary/linux-amd64
- prod/build-binary/linux-arm64
when:
- event: tag
depends_on:
- 0-pre