Skip to content

Commit

Permalink
image-v2.1.0: add gh
Browse files Browse the repository at this point in the history
Add the `gh` (GitHub CLI) executable to the backing image so CICD jobs
can do consumer reports.

Part of OSD-5962
  • Loading branch information
2uasimojo committed May 28, 2021
1 parent 4f3e8a0 commit a2caa98
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion boilerplate/test/test-base-convention/update
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@ echo "Validating variables exported from the main update driver"
# Granny switch to disable this check for weird tests like reverting to master
if [[ -z "$SKIP_IMAGE_TAG_CHECK" ]]; then
# Update this when publishing a new image tag
[[ "$LATEST_IMAGE_TAG" == "image-v2.0.1" ]] || err "Bad LATEST_IMAGE_TAG: '$LATEST_IMAGE_TAG'"
[[ "$LATEST_IMAGE_TAG" == "image-v2.1.0" ]] || err "Bad LATEST_IMAGE_TAG: '$LATEST_IMAGE_TAG'"
fi
12 changes: 11 additions & 1 deletion config/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,16 @@
set -x
set -euo pipefail

echo NOOP
####
# gh
####
GH_VERSION=1.10.3
GH_SHA256SUM="257c5bf641d85606337bc91c6507066a21ba6c849be50231b768fe2fd07517ea"
GH_LOCATION=https://github.com/cli/cli/releases/download/v${GH_VERSION}/gh_${GH_VERSION}_linux_amd64.tar.gz

curl -L -o /tmp/gh.tgz $GH_LOCATION
echo ${GH_SHA256SUM} /tmp/gh.tgz | sha256sum -c
tar -xvzf /tmp/gh.tgz gh_${GH_VERSION}_linux_amd64/bin/gh
mv gh_${GH_VERSION}_linux_amd64/bin/gh /usr/local/bin

exit 0
2 changes: 1 addition & 1 deletion test/lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ if [ "$BOILERPLATE_SET_X" ]; then
fi

# NOTE: Change this when publishing a new image tag.
LATEST_IMAGE_TAG=image-v2.0.1
LATEST_IMAGE_TAG=image-v2.1.0

REPO_ROOT=$(git rev-parse --show-toplevel)
# Make all tests use this local clone by default.
Expand Down

0 comments on commit a2caa98

Please sign in to comment.