Skip to content

Commit

Permalink
Build images for multiple platforms (amd64/arm64)
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrekkr committed Feb 24, 2024
1 parent f8814ca commit e44ce92
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit e44ce92

Please sign in to comment.