From e44ce92d4c3db2c5c407a264916d6b20fb57545c Mon Sep 17 00:00:00 2001 From: piotrekkr Date: Sat, 24 Feb 2024 18:09:11 +0100 Subject: [PATCH] Build images for multiple platforms (amd64/arm64) --- .github/workflows/release.yaml | 36 +++++++++++++++++----------------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 006f898..ea007c4 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -68,21 +68,21 @@ jobs: cache-from: type=gha,scope=archivist cache-to: type=gha,mode=max,scope=archivist - - name: Cleanup untagged images - env: - GH_TOKEN: ${{ github.token }} - run: | - name=salesforce-archivist - to_delete=$( - gh api "/user/packages/container/${name}/versions" \ - --jq '.[] | select(.metadata.container.tags==[]) | .id' - ) - if [[ -z $to_delete ]]; then - echo "No untagged images found" - exit 0 - fi - - while read -r id; do - echo "Deleting untagged image id: ${id}" - gh api -X DELETE "/user/packages/container/${name}/versions/${id}"; - done <<< "$to_delete" +# - name: Cleanup untagged images +# env: +# GH_TOKEN: ${{ github.token }} +# run: | +# name=salesforce-archivist +# to_delete=$( +# gh api "/user/packages/container/${name}/versions" \ +# --jq '.[] | select(.metadata.container.tags==[]) | .id' +# ) +# if [[ -z $to_delete ]]; then +# echo "No untagged images found" +# exit 0 +# fi +# +# while read -r id; do +# echo "Deleting untagged image id: ${id}" +# gh api -X DELETE "/user/packages/container/${name}/versions/${id}"; +# done <<< "$to_delete"