add: image prune on clean
All checks were successful
Blog Deployment / Check-Rebuild (push) Successful in 5s
Blog Deployment / Build (push) Successful in 9s
Blog Deployment / Deploy-Staging (push) Successful in 9s
Blog Deployment / Test-Staging (push) Successful in 3s
Blog Deployment / Merge (push) Successful in 5s
Blog Deployment / Deploy-Production (push) Successful in 9s
Blog Deployment / Test-Production (push) Successful in 2s
Blog Deployment / Clean (push) Successful in 2s

This commit is contained in:
Vezpi 2025-06-05 08:55:38 +00:00
parent 06e32273d2
commit ea8297466c
2 changed files with 4 additions and 1 deletions

View File

@ -195,5 +195,7 @@ jobs:
shell: sh
steps:
- name: Remove Old Docker Image
run: docker image rm ${{ needs.Check-Rebuild.outputs.current_docker_image }} --force
run: |
docker image rm ${{ needs.Check-Rebuild.outputs.current_docker_image }} --force
docker image prune -f

View File

@ -8,6 +8,7 @@ BRANCH="${BRANCH:-preview}"
CLONE_DIR="${CLONE_DIR:-/blog}"
DRAFTS=""
# Add drafts for preview
if [ "$BRANCH" = "preview" ]; then
echo "- Adding draft pages to be generated"