[CI] Improvments build/checks
Some checks failed
ci/woodpecker/push/99-release-bot Pipeline was successful
ci/woodpecker/push/1-build-check unknown status
ci/woodpecker/push/10-build-dev unknown status
ci/woodpecker/push/0-pre Pipeline failed

- Updated workflow to release the binary builds for tags in forgejo.
- Removed Check for docker build -> to much cpu usage for building.

Reviewed-on: #13
This commit is contained in:
Phil 2025-04-07 19:03:21 +00:00
parent fca1fe2b7b
commit 8546c3b969
2 changed files with 10 additions and 21 deletions

View file

@ -19,26 +19,6 @@ steps:
commands: 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 . - 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: when:
- event: [push, cron] - event: [push, cron]
branch: [main, develop] branch: [main, develop]

View file

@ -34,6 +34,15 @@ steps:
- prod/build-binary/linux-amd64 - prod/build-binary/linux-amd64
- prod/build-binary/linux-arm64 - 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: when:
- event: tag - event: tag