fix: refactor removal of old docker images
All checks were successful
Blog Test / Check-Rebuild (push) Successful in 6s
Blog Test / Build (push) Has been skipped
Blog Test / Deploy-Test (push) Successful in 9s
Blog Test / Test (push) Successful in 2s
Blog Deployment / Check-Rebuild (push) Successful in 6s
Blog Deployment / Build (push) Has been skipped
Blog Deployment / Deploy-Staging (push) Successful in 10s
Blog Deployment / Test-Staging (push) Successful in 2s
Blog Deployment / Merge (push) Successful in 9s
Blog Deployment / Deploy-Production (push) Successful in 8s
Blog Deployment / Test-Production (push) Successful in 2s
Blog Deployment / Clean (push) Has been skipped
Blog Deployment / Notify (push) Successful in 2s

This commit was merged in pull request #13.
This commit is contained in:
2026-04-10 15:38:28 +02:00
parent 4cc467b0db
commit c731b7eaf5

View File

@@ -194,7 +194,7 @@ jobs:
steps: steps:
- name: Remove Old Docker Image - name: Remove Old Docker Image
run: | run: |
docker image rm ${{ needs.Check-Rebuild.outputs.current_docker_image }} --force docker image rm $(docker image ls ${DOCKER_IMAGE} 2> /dev/null | awk '$NF != "U" && NR>1 {print $2}')
Notify: Notify:
needs: [Check-Rebuild, Build, Deploy-Staging, Test-Staging, Merge, Deploy-Production, Test-Production, Clean] needs: [Check-Rebuild, Build, Deploy-Staging, Test-Staging, Merge, Deploy-Production, Test-Production, Clean]