steps: - name: build-binary/linux-amd64 image: golang:1.24.2 environment: 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 . when: - event: [push, cron] branch: main - name: build-and-push-docker-dev image: woodpeckerci/plugin-docker-buildx:5.2.2 environment: I_PACKAGE: "git.hackmi.ch/Phil/goshorly/utils" CGO_ENABLED: 0 settings: platforms: linux/amd64,linux/arm64 repo: git.hackmi.ch/phil/goshorly registry: git.hackmi.ch tags: dev build_args: - I_PACKAGE="git.hackmi.ch/Phil/goshorly/utils" username: from_secret: reg-user password: from_secret: reg-pass depends_on: - build-binary/linux-amd64 when: - event: [push, cron] branch: main when: - event: [push, cron] branch: main depends_on: - 0-pre