From d6b85b00221452e378bf079ee3cd3dd52b18ecda Mon Sep 17 00:00:00 2001 From: lotyp Date: Fri, 5 Apr 2024 02:49:22 +0300 Subject: [PATCH] ci: allow push on release --- .github/workflows/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f347094..2ca7fe3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -188,12 +188,12 @@ jobs: - name: Create manifest list and push run: | # Aggregate all tags from the meta files - TAGS=$(jq -r '.target."docker-metadata-action".tags[]' /tmp/meta/bake-meta-*.json | sort -u) + TAGS=$(jq -r '.target."docker-metadata-action".tags[]' /tmp/bake-meta-*.json | sort -u) # Loop through each tag and create a manifest list for TAG in $TAGS; do FULL_TAGS=() - for FILE in /tmp/meta/bake-meta-*.json; do + for FILE in /tmp/bake-meta-*.json; do if jq -e --arg TAG "$TAG" '.target."docker-metadata-action".tags[] | select(. == $TAG)' $FILE > /dev/null; then # Extract the repository and digest for the current platform REPO=$(jq -r --arg TAG "$TAG" '.target."docker-metadata-action".tags[] | select(. == $TAG)' $FILE | cut -d':' -f1)