build(ci): support both Woodpecker and Drone in run-goreleaser
Use CI_COMMIT_TAG with DRONE_TAG fallback so the script works in both CI systems during migration.
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
go install github.com/goreleaser/goreleaser/v2@v2.12.3
|
||||
go install github.com/goreleaser/goreleaser/v2@v2.14.1
|
||||
|
||||
if [ ! -z "${harbor_username:-}" ]; then
|
||||
DOCKER_FILE=~/.docker/config.json
|
||||
@@ -13,11 +13,11 @@ if [ ! -z "${harbor_username:-}" ]; then
|
||||
fi
|
||||
fi
|
||||
|
||||
DRONE_TAG=${DRONE_TAG-""}
|
||||
CI_TAG=${CI_COMMIT_TAG:-${DRONE_TAG:-""}}
|
||||
|
||||
is_snapshot=""
|
||||
|
||||
if [ -z "$DRONE_TAG" ]; then
|
||||
if [ -z "$CI_TAG" ]; then
|
||||
is_snapshot="--snapshot"
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user