Compare commits
1 commit
c084f2c64f
...
96aadee437
Author | SHA1 | Date | |
---|---|---|---|
96aadee437 |
2 changed files with 21 additions and 10 deletions
|
@ -19,6 +19,26 @@ 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]
|
||||
|
|
|
@ -33,16 +33,7 @@ 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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue