53
53
54
54
- name : Backup existing API image
55
55
# 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'
57
56
run : |
58
57
OWNER="${{ github.repository_owner }}"
59
58
BASE="${{ github.event.repository.name }}-api"
69
68
70
69
- name : Backup existing Jobs image
71
70
# 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'
73
71
run : |
74
72
OWNER="${{ github.repository_owner }}"
75
73
BASE="${{ github.event.repository.name }}-jobs"
85
83
86
84
- name : Cleanup Old API Image Digests
87
85
# Cleans up old api images
88
- if : steps.changes.outputs.api == 'true'
89
86
uses : actions/delete-package-versions@v5
90
87
continue-on-error : true
91
88
with :
97
94
98
95
- name : Cleanup Old Jobs Image Digests
99
96
# Cleans up old jobs images
100
- if : steps.changes.outputs.jobs == 'true'
101
97
uses : actions/delete-package-versions@v5
102
98
continue-on-error : true
103
99
with :
@@ -109,7 +105,6 @@ jobs:
109
105
110
106
- name : Build & push API image
111
107
# Builds a new Docker image with the target tag and pushes it to GHCR.
112
- if : steps.changes.outputs.api == 'true'
113
108
run : |
114
109
OWNER=${{ github.repository_owner }}
115
110
BASE=${{ github.event.repository.name }}-api
@@ -127,7 +122,6 @@ jobs:
127
122
128
123
- name : Build & push Jobs image
129
124
# Builds a new Docker image with the target tag and pushes it to GHCR.
130
- if : steps.changes.outputs.jobs == 'true'
131
125
run : |
132
126
OWNER=${{ github.repository_owner }}
133
127
BASE=${{ github.event.repository.name }}-jobs
0 commit comments