[CI] Upload version binary to forgejo release #13

Merged
Phil merged 2 commits from ci/release-binary into main 2025-04-07 19:03:21 +00:00
2 changed files with 10 additions and 21 deletions

View file

@ -19,26 +19,6 @@ steps:
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]

View file

@ -33,7 +33,16 @@ steps:
depends_on:
- prod/build-binary/linux-amd64
- prod/build-binary/linux-arm64
- name: prod/release/binary
image: woodpeckerci/plugin-release:0.2
settings:
files:
- 'app-linux-amd64'
- 'app-linux-arm64'
api_key:
from_secret: release_token
when:
- event: tag