Skip to content

Commit

Permalink
Tag appstudio-utils with latest
Browse files Browse the repository at this point in the history
Tagging with latest so applications can use this
image with a floating tag. Using a floating tag
ensures the latest utilities are used without
updating the image.

https://issues.redhat.com/browse/EC-865
  • Loading branch information
joejstuart committed Sep 10, 2024
1 parent 1d4b8c4 commit 997e251
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions hack/build-and-push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,15 @@ if [ "$SKIP_BUILD" == "" ]; then
echo "Using $QUAY_NAMESPACE to push results "
docker build -t "$APPSTUDIO_UTILS_IMG" "$SCRIPTDIR/../appstudio-utils/"
docker push "$APPSTUDIO_UTILS_IMG"

# This isn't needed during PR testing
if [[ "$BUILD_TAG" != "latest" && -z "$TEST_REPO_NAME" ]]; then
# tag with latest
IMAGE_NAME="${APPSTUDIO_UTILS_IMG%:*}:latest"
docker tag "$APPSTUDIO_UTILS_IMG" "$IMAGE_NAME"
docker push "$IMAGE_NAME"
fi

fi

generated_pipelines_dir=$(mktemp -d -p "$WORKDIR" pipelines.XXXXXXXX)
Expand Down

0 comments on commit 997e251

Please sign in to comment.