Skip to content

Commit

Permalink
chore(cd): stop uploading to pulp
Browse files Browse the repository at this point in the history
  • Loading branch information
fffonion committed Mar 25, 2024
1 parent e0b825c commit 63db775
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 14 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -549,10 +549,6 @@ 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 }}
Expand All @@ -564,7 +560,6 @@ 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/*
Expand Down
13 changes: 4 additions & 9 deletions scripts/release-kong.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,10 @@ source .requirements
KONG_VERSION=$(bash scripts/grep-kong-version.sh)
KONG_RELEASE_LABEL=${KONG_RELEASE_LABEL:-$KONG_VERSION}

PULP_HOST=${PULP_HOST:-"https://api.download-dev.konghq.com"}
PULP_USERNAME=${PULP_USERNAME:-"admin"}
PULP_PASSWORD=${PULP_PASSWORD:-}
# allow package name (from .requirements) to be overridden by ENV
KONG_PACKAGE_NAME="${KONG_PACKAGE_NAME_OVERRIDE:-${KONG_PACKAGE_NAME}}"

PULP_DOCKER_IMAGE="kong/release-script"
RELEASE_SCRIPT_DOCKER_IMAGE="kong/release-script"

# Variables used by the release script
ARCHITECTURE=${ARCHITECTURE:-amd64}
Expand Down Expand Up @@ -131,17 +130,13 @@ function push_package () {
fi

docker run \
-e PULP_HOST="$PULP_HOST" \
-e PULP_USERNAME="$PULP_USERNAME" \
-e PULP_PASSWORD="$PULP_PASSWORD" \
-e VERBOSE \
-e CLOUDSMITH_API_KEY \
-e CLOUDSMITH_DRY_RUN \
-e IGNORE_CLOUDSMITH_FAILURES \
-e USE_CLOUDSMITH \
-e USE_PULP \
-v "$(pwd)/$KONG_ARTIFACT:/files/$DIST_FILE" \
-i $PULP_DOCKER_IMAGE \
-i $RELEASE_SCRIPT_DOCKER_IMAGE \
--file "/files/$DIST_FILE" \
--dist-name "$ARTIFACT_TYPE" $dist_version \
--major-version "${KONG_VERSION%%.*}.x" \
Expand Down

0 comments on commit 63db775

Please sign in to comment.