Skip to content

Commit

Permalink
[patch] Remove expires-after on release (#1262)
Browse files Browse the repository at this point in the history
Co-authored-by: David Parker <[email protected]>
  • Loading branch information
IanBoden and durera authored Sep 24, 2024
1 parent 41c56a9 commit 54d6ed1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions build/bin/docker-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@ echo "RELEASE_LABEL .. $GITHUB_RUN_ID"
echo "VCS_REF ........ $GITHUB_SHA"
echo "VCS_URL ........ https://github.com/$GITHUB_REPOSITORY"

# Remove expires-after for release builds (only pre-release builds should auto-expire)
if [[ ! "$DOCKER_TAG" == *"-pre."* ]]; then
echo "Removing quay.expires-after label from Dockerfile"
sed -i "/quay.expires-after/d" $DOCKERFILE
fi

docker build \
--build-arg VERSION_LABEL=$DOCKER_TAG \
--build-arg RELEASE_LABEL=$GITHUB_RUN_ID \
Expand Down

0 comments on commit 54d6ed1

Please sign in to comment.