From 3c801842e4e131b0f19a24140ceb9c1630199395 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ask=20Bj=C3=B8rn=20Hansen?= Date: Sat, 7 Mar 2026 16:20:51 -0800 Subject: [PATCH] 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. --- scripts/run-goreleaser | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/run-goreleaser b/scripts/run-goreleaser index d5fee4b..9191d6b 100755 --- a/scripts/run-goreleaser +++ b/scripts/run-goreleaser @@ -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