Skip to content

Commit

Permalink
replace pr tag with latest on merge
Browse files Browse the repository at this point in the history
  • Loading branch information
rob93c committed Oct 15, 2023
1 parent d178490 commit a6f0aa1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,7 @@ jobs:
if: github.event.pull_request.merged
run: |
tag_to_delete="pr-${{ github.event.pull_request.number }}"
docker rmi rob93c/christmas-greeter:$tag_to_delete
docker pull rob93c/christmas-greeter:$tag_to_delete
docker tag rob93c/christmas-greeter:$tag_to_delete rob93c/christmas-greeter:latest
docker push rob93c/christmas-greeter:latest
echo "The tag $tag_to_delete has been deleted"

0 comments on commit a6f0aa1

Please sign in to comment.