This commit is contained in:
estebanthi
2026-01-04 12:48:40 +01:00
parent 1053d1271c
commit a8c9119010

View File

@@ -83,12 +83,11 @@ jobs:
echo "==== Building $NAME ====" echo "==== Building $NAME ===="
TAGS=() TAGS+=("$FULL_IMAGE:${{ github.ref_name }}")
TAGS+=("$NAME:${{ github.ref_name }}") TAGS+=("$FULL_IMAGE:${{ github.sha }}")
TAGS+=("$NAME:${{ github.sha }}")
if [ "${{ steps.branch.outputs.is_default }}" = "true" ]; then if [ "${{ steps.branch.outputs.is_default }}" = "true" ]; then
TAGS+=("$NAME:latest") TAGS+=("$FULL_IMAGE:latest")
fi fi
TAG_ARGS=$(printf -- "--tag %s " "${TAGS[@]}") TAG_ARGS=$(printf -- "--tag %s " "${TAGS[@]}")
@@ -96,8 +95,8 @@ jobs:
docker buildx build \ docker buildx build \
--file "$DOCKERFILE" \ --file "$DOCKERFILE" \
--target "$TARGET" \ --target "$TARGET" \
--cache-from "type=registry,ref=$CACHE_REF" \ --cache-from "type=registry,ref=$CACHE_REF"
--cache-to "type=registry,ref=$CACHE_REF,mode=max" \ --cache-to "type=registry,ref=$CACHE_REF,mode=max"
--load \ --load \
$TAG_ARGS \ $TAG_ARGS \
$(printf -- "--build-arg %s " $BUILD_ARGS) \ $(printf -- "--build-arg %s " $BUILD_ARGS) \