Update and rename PR-Demos.yml to PR-Demo-cleanup.yml

This commit is contained in:
Anthony Stirling 2024-11-17 13:43:48 +00:00 committed by GitHub
parent a58696a38e
commit 60bf649260
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,4 +1,4 @@
name: PR Deployment name: PR Deployment cleanup
on: on:
pull_request: pull_request:
@ -42,7 +42,7 @@ jobs:
rm -rf /stirling/PR-${{ github.event.pull_request.number }} rm -rf /stirling/PR-${{ github.event.pull_request.number }}
# Remove the Docker image # Remove the Docker image
docker rmi ${{ secrets.DOCKER_HUB_USERNAME }}/test:pr-${{ github.event.pull_request.number }} || true docker rmi --no-prune ${{ secrets.DOCKER_HUB_USERNAME }}/test:pr-${{ github.event.pull_request.number }} || true
echo "Cleanup completed successfully" echo "Cleanup completed successfully"
else else