Skip to content

Commit

Permalink
Adds ability to use GITHUB_TOKEN auth for backplane-tools
Browse files Browse the repository at this point in the history
Adds the ability to use an exported `GITHUB_TOKEN` env variable for
backplane-tools authenticated installs.

Signed-off-by: Chris Collins <[email protected]>
  • Loading branch information
clcollins committed Jul 8, 2024
1 parent 87a4ba7 commit 02d50e6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .ci/pull-request-check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@

set -euo pipefail

GITHUB_TOKEN="${GITHUB_TOKEN:-}"

# Build the images
make BUILD_ARGS="--no-cache" build-image-amd64
make BUILD_ARGS="--no-cache --build-arg GITHUB_TOKEN=${GITHUB_TOKEN}" build-image-amd64
# make BUILD_ARGS="--no-cache" build-image-arm64

make TAG=latest-amd64 ARCHITECTURE=amd64 tag
Expand Down
4 changes: 3 additions & 1 deletion .ci/release-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@

set -euo pipefail

GITHUB_TOKEN="${GITHUB_TOKEN:-}"

# Build the images
make BUILD_ARGS="--no-cache" build-image-amd64
make BUILD_ARGS="--no-cache --build-arg GITHUB_TOKEN=${GITHUB_TOKEN}" build-image-amd64
# make BUILD_ARGS="--no-cache" build-image-arm64

make TAG=latest-amd64 ARCHITECTURE=amd64 tag
Expand Down
2 changes: 1 addition & 1 deletion Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ FROM tools-base as backplane-tools
ARG OUTPUT_DIR="/opt"

# Set GH_TOKEN to use authenticated GH requests
ARG GH_TOKEN
ARG GITHUB_TOKEN

ARG BACKPLANE_TOOLS_VERSION="tags/v1.2.0"
ENV BACKPLANE_TOOLS_URL_SLUG="openshift/backplane-tools"
Expand Down

0 comments on commit 02d50e6

Please sign in to comment.