Skip to content

Commit

Permalink
build: avoid annotating when loading
Browse files Browse the repository at this point in the history
  • Loading branch information
nijel committed Nov 23, 2023
1 parent 1c741a2 commit 9016fa4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/bin/get-buildx-args
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@ else
fi

# Expose annotations
WEBLATE_VERSION=$(sed -n 's/^ENV WEBLATE_VERSION \(.*\)/\1/p' Dockerfile)
sed -n "s/^LABEL \(org.opencontainers.image.*\)/--annotation index:\1/p" Dockerfile | sed -e "s/\\\$WEBLATE_VERSION/$WEBLATE_VERSION/"
if [ "$1" != "load" ] ; then
WEBLATE_VERSION=$(sed -n 's/^ENV WEBLATE_VERSION \(.*\)/\1/p' Dockerfile)
sed -n "s/^LABEL \(org.opencontainers.image.*\)/--annotation index:\1/p" Dockerfile | sed -e "s/\\\$WEBLATE_VERSION/$WEBLATE_VERSION/"
fi

# Write to local cache unless publishing (not compatible with push)
if [ "$1" != "publish" ] ; then
Expand Down

0 comments on commit 9016fa4

Please sign in to comment.