steps: - name: test/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-amd64 . - name: test/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-arm64 . - name: test/build-docker/linux-amd64 image: woodpeckerci/plugin-docker-buildx:5.2.2 settings: platforms: linux/amd64 dry-run: true repo: git.hackmi.ch/phil/goshorly registry: git.hackmi.ch depends_on: - test/build-binary/linux-amd64 - name: test/build-docker/linux-arm64 image: woodpeckerci/plugin-docker-buildx:5.2.2 settings: platforms: linux/arm64 dry-run: true repo: git.hackmi.ch/phil/goshorly registry: git.hackmi.ch depends_on: - test/build-binary/linux-arm64 when: - event: [push, cron] branch: [main, develop] - event: pull_request depends_on: - 0-pre