From 60bf6492605106fa7334437d1c39cc8e5cbb338d Mon Sep 17 00:00:00 2001 From: Anthony Stirling <77850077+Frooodle@users.noreply.github.com> Date: Sun, 17 Nov 2024 13:43:48 +0000 Subject: [PATCH] Update and rename PR-Demos.yml to PR-Demo-cleanup.yml --- .github/workflows/{PR-Demos.yml => PR-Demo-cleanup.yml} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename .github/workflows/{PR-Demos.yml => PR-Demo-cleanup.yml} (93%) diff --git a/.github/workflows/PR-Demos.yml b/.github/workflows/PR-Demo-cleanup.yml similarity index 93% rename from .github/workflows/PR-Demos.yml rename to .github/workflows/PR-Demo-cleanup.yml index f0a94906a..e1760b36b 100644 --- a/.github/workflows/PR-Demos.yml +++ b/.github/workflows/PR-Demo-cleanup.yml @@ -1,4 +1,4 @@ -name: PR Deployment +name: PR Deployment cleanup on: pull_request: @@ -42,7 +42,7 @@ jobs: rm -rf /stirling/PR-${{ github.event.pull_request.number }} # 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" else