Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

image-v2.1.0: add gh #180

Merged
merged 1 commit into from
May 28, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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