Commit 33215d6 1 parent 503b2a0 commit 33215d6 Copy full SHA for 33215d6
File tree 1 file changed +11
-1
lines changed
.github/actions/combine-multi-arch-images
1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 67
67
ALL_TAGS : ${{ steps.get-all-tags.outputs.tags }}
68
68
shell : bash
69
69
70
- - name : Create Docker manifest
70
+ - name : Create Docker manifest and delete -amd64 and -arm64 tags
71
71
run : |
72
72
for base_tag in $BASE_TAGS; do
73
73
echo -e "\nbase_tag: $base_tag"
@@ -100,6 +100,16 @@ runs:
100
100
$arm64_image; then
101
101
102
102
docker manifest push ${{ steps.set-image-name.outputs.image-name }}:$base_tag
103
+
104
+ # Delete amd64_image and arm64_image
105
+ curl -X DELETE \
106
+ -H "Authorization: Bearer ${{ github.token }}" \
107
+ -H "Accept: application/vnd.github.v3+json" \
108
+ https://api.github.com/orgs/${{ github.repository_owner }}/packages/container/${{ inputs.package-name }}/versions/$amd64_tag
109
+ curl -X DELETE \
110
+ -H "Authorization: Bearer ${{ github.token }}" \
111
+ -H "Accept: application/vnd.github.v3+json" \
112
+ https://api.github.com/orgs/${{ github.repository_owner }}/packages/container/${{ inputs.package-name }}/versions/$arm64_tag
103
113
fi
104
114
done
105
115
env :
You can’t perform that action at this time.
0 commit comments