Skip to content

Commit

Permalink
Removed delete image since it does not seem to be supported by dockerhub
Browse files Browse the repository at this point in the history
  • Loading branch information
craigk5n committed Oct 2, 2023
1 parent 2f61e94 commit 7b34abe
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/docker-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,10 @@ jobs:
do
if [ $COUNTER -ge $KEEP_LAST_N_IMAGES ]
then
echo "Deleting tag $TAG"
curl -i -X DELETE -u $DOCKER_HUB_USERNAME:$DOCKER_HUB_PASSWORD https://hub.docker.com/v2/repositories/$DOCKER_HUB_REPO/tags/$TAG/
echo "The following tag should be deleted: $TAG"
# Commenting out the actual delete since dockerhub does not seem to support delete via curl :-(
# echo "Deleting tag $TAG"
# curl -i -X DELETE -u $DOCKER_HUB_USERNAME:$DOCKER_HUB_PASSWORD https://hub.docker.com/v2/repositories/$DOCKER_HUB_REPO/tags/$TAG/
else
echo "Keeping tag $TAG"
fi
Expand Down

0 comments on commit 7b34abe

Please sign in to comment.