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 38c6cd3 commit a2e66da
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions hack/build-and-push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,14 @@ rm -f "${OUTPUT_TASK_BUNDLE_LIST}" "${OUTPUT_PIPELINE_BUNDLE_LIST}"
if [ "$SKIP_BUILD" == "" ]; then
echo "Using $QUAY_NAMESPACE to push results "
docker build -t "$APPSTUDIO_UTILS_IMG" "$SCRIPTDIR/../appstudio-utils/"

# 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
docker push "$APPSTUDIO_UTILS_IMG"
fi

Expand Down

0 comments on commit a2e66da

Please sign in to comment.