Skip to content

Commit

Permalink
fix: workflow build docker image
Browse files Browse the repository at this point in the history
Signed-off-by: MicroOps <[email protected]>
  • Loading branch information
MicroOps-cn committed Oct 30, 2024
1 parent 8e31246 commit cc90a12
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/github-actions-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,8 @@ jobs:
ls * | while read VERSION_ID;
do
echo "Delete image: ${REGISTRY}/${IMAGE_NAME}@sha256:${VERSION_ID}"
curl -X DELETE \
-H "Authorization: Bearer ${GITHUB_TOKEN}" \
-H "Accept: application/vnd.github+json" \
https://api.github.com/user/packages/container/${IMAGE_NAME}/versions/${VERSION_ID}
curl -X DELETE \
-H "Authorization: Bearer ${GITHUB_TOKEN}" \
-H "Accept: application/vnd.github+json" \
https://api.github.com/user/packages/container/${IMAGE_NAME}/versions/${VERSION_ID}
done

0 comments on commit cc90a12

Please sign in to comment.