Skip to content

Commit

Permalink
ci: woodpecker uses a different env to indicate tagging
Browse files Browse the repository at this point in the history
  • Loading branch information
wez committed Nov 28, 2023
1 parent 884be6e commit b5252a4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion assets/build-deb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ HERE=$(pwd)

# If not specified, build the package as `kumomta-dev`.
# When we're building from a tag (REF_TYPE is set to tag) we set 'DEB_NAME=kumomta'
[[ "${REF_TYPE}" == "tag" ]] && DEB_NAME=kumomta
[[ "${REF_TYPE}" == "tag" || "${CI_PIPELINE_EVENT}" == "tag" ]] && DEB_NAME=kumomta
DEB_NAME=${DEB_NAME:-kumomta-dev}

CONFLICTS=kumomta
Expand Down
2 changes: 1 addition & 1 deletion assets/build-rpm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ HERE=$(pwd)

# If not specified, build the rpm as `kumomta-dev`.
# When we're building from a tag (REF_TYPE is set to tag) we set 'RPM_NAME=kumomta'
[[ "${REF_TYPE}" == "tag" ]] && RPM_NAME=kumomta
[[ "${REF_TYPE}" == "tag" || "${CI_PIPELINE_EVENT}" == "tag" ]] && RPM_NAME=kumomta
RPM_NAME=${RPM_NAME:-kumomta-dev}

CONFLICTS=kumomta
Expand Down
2 changes: 1 addition & 1 deletion assets/upload-package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ case "$REPO" in
"mcr.microsoft.com/cbl-mariner/base/core:2.0") REPO="kumomta-mariner-2" ;;
esac

[[ "${REF_TYPE}" == "tag" ]] && REPO="${REPO}-stable"
[[ "${REF_TYPE}" == "tag" || "${CI_PIPELINE_EVENT}" == "tag" ]] && REPO="${REPO}-stable"

t=$(mktemp)
trap "rm -f $t" EXIT
Expand Down

0 comments on commit b5252a4

Please sign in to comment.