5353
5454 - name : Backup existing API image
5555 # Pulls the current image using the target tag and backup it with a previous tag if it exists.
56- if : steps.changes.outputs.api == 'true'
5756 run : |
5857 OWNER="${{ github.repository_owner }}"
5958 BASE="${{ github.event.repository.name }}-api"
6968
7069 - name : Backup existing Jobs image
7170 # Pulls the current image using the target tag and backup it with a previous tag if it exists.
72- if : steps.changes.outputs.jobs == 'true'
7371 run : |
7472 OWNER="${{ github.repository_owner }}"
7573 BASE="${{ github.event.repository.name }}-jobs"
8583
8684 - name : Cleanup Old API Image Digests
8785 # Cleans up old api images
88- if : steps.changes.outputs.api == 'true'
8986 uses : actions/delete-package-versions@v5
9087 continue-on-error : true
9188 with :
9794
9895 - name : Cleanup Old Jobs Image Digests
9996 # Cleans up old jobs images
100- if : steps.changes.outputs.jobs == 'true'
10197 uses : actions/delete-package-versions@v5
10298 continue-on-error : true
10399 with :
@@ -109,7 +105,6 @@ jobs:
109105
110106 - name : Build & push API image
111107 # Builds a new Docker image with the target tag and pushes it to GHCR.
112- if : steps.changes.outputs.api == 'true'
113108 run : |
114109 OWNER=${{ github.repository_owner }}
115110 BASE=${{ github.event.repository.name }}-api
@@ -127,7 +122,6 @@ jobs:
127122
128123 - name : Build & push Jobs image
129124 # Builds a new Docker image with the target tag and pushes it to GHCR.
130- if : steps.changes.outputs.jobs == 'true'
131125 run : |
132126 OWNER=${{ github.repository_owner }}
133127 BASE=${{ github.event.repository.name }}-jobs
0 commit comments