better vars
ci/woodpecker/push/release-version Pipeline failed Details

minimal-dockerfile
gapodo 2022-12-08 01:05:41 +01:00
parent 0b0c65e797
commit 1310f11502
1 changed files with 3 additions and 3 deletions

View File

@ -97,12 +97,12 @@ pipeline:
image: *golang_image
pull: true
environment:
TAG: ${CI_COMMIT_TAG##v}
TAG: ${CI_COMMIT_TAG:-main}
commands:
- env | grep -vi drone | sort -h
- mkdir -p /source/dist/release
- touch /source/dist/release/forgejo-${TAG:-main}-linux-arm64
- touch /source/dist/release/forgejo-${TAG:-main}-linux-amd64
- touch /source/dist/release/forgejo-$${TAG##v}-linux-arm64
- touch /source/dist/release/forgejo-$${TAG##v}-linux-amd64
- mkdir tmp-bin
- cp -r dist/* tmp-bin/
- ls -la tmp-bin/*