From a36a5d2f6977fddd76b9f86d368d248780b937a8 Mon Sep 17 00:00:00 2001 From: Water-Melon Date: Thu, 20 Jun 2024 15:31:36 +0000 Subject: [PATCH] chore(ci): disable package upload to Pulp KAG-4776 --- .github/workflows/release.yml | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 896f9e151c0..517eb7e1b03 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -608,13 +608,10 @@ jobs: env: ARCHITECTURE: ${{ steps.pkg-arch.outputs.arch }} OFFICIAL_RELEASE: ${{ github.event.inputs.official }} - PULP_HOST: https://api.download.konghq.com - PULP_USERNAME: admin - # PULP_PASSWORD: ${{ secrets.PULP_DEV_PASSWORD }} - PULP_PASSWORD: ${{ secrets.PULP_PASSWORD }} ARTIFACT_VERSION: ${{ matrix.artifact-version }} ARTIFACT_TYPE: ${{ matrix.artifact-type }} ARTIFACT: ${{ matrix.artifact }} + INPUT_VERSION: ${{ github.event.inputs.version }} PACKAGE_TYPE: ${{ matrix.package }} KONG_RELEASE_LABEL: ${{ needs.metadata.outputs.release-label }} VERBOSE: ${{ runner.debug == '1' && '1' || '' }} @@ -622,10 +619,20 @@ jobs: CLOUDSMITH_DRY_RUN: '' IGNORE_CLOUDSMITH_FAILURES: ${{ vars.IGNORE_CLOUDSMITH_FAILURES }} USE_CLOUDSMITH: ${{ vars.USE_CLOUDSMITH }} - USE_PULP: ${{ vars.USE_PULP }} run: | sha256sum bazel-bin/pkg/* + # set the version input as tags passed to release-scripts + # note: release-scripts rejects user tags if missing internal flag + # + # this can be a comma-sepratated list of tags to apply + if [[ "$OFFICIAL_RELEASE" == 'false' ]]; then + if echo "$INPUT_VERSION" | grep -qs -E 'rc|alpha|beta|nightly'; then + PACKAGE_TAGS="$INPUT_VERSION" + export PACKAGE_TAGS + fi + fi + scripts/release-kong.sh release-images: