Skip to content

Commit

Permalink
build: include annotations in the multi-arch images
Browse files Browse the repository at this point in the history
This needs --annotations support in buildx which was introduced in
Docker buildx 0.12.0.
  • Loading branch information
nijel committed Nov 17, 2023
1 parent 9955aa4 commit 8df2233
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/bin/get-buildx-args
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ else
done
fi

# Expose annotations
WEBLATE_VERSION=$(sed -n 's/^ENV WEBLATE_VERSION \(.*\)/\1/p' Dockerfile)
sed -n "s/^LABEL \(org.opencontainers.image.*\)/--annotation \1/p" Dockerfile | sed "s/\\\$WEBLATE_VERSION/$WEBLATE_VERSION/"

# Write to local cache unless publishing (not compatible with push)
if [ "$1" != "publish" ] ; then
echo --cache-to "type=local,dest=/tmp/.buildx-cache/$MATRIX_ARCHITECTURE,mode=max"
Expand Down

0 comments on commit 8df2233

Please sign in to comment.