File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -167,6 +167,10 @@ jobs:
167
167
env :
168
168
KAYOBE_VAULT_PASSWORD : ${{ secrets.KAYOBE_VAULT_PASSWORD }}
169
169
170
+ - name : Prune local Kolla container images over 1 week old
171
+ run : |
172
+ sudo docker image prune --all --force --filter until=168h --filter="label=kolla_version"
173
+
170
174
- name : Build and push kolla overcloud images
171
175
run : |
172
176
args="${{ github.event.inputs.regexes }}"
@@ -200,17 +204,16 @@ jobs:
200
204
run : |
201
205
sudo docker image ls --filter "reference=ark.stackhpc.com/stackhpc-dev/${{ matrix.distro }}-*:${{ needs.generate-tag.outputs.kolla_tag }}" > ${{ matrix.distro }}-container-images
202
206
207
+ - name : Fail if no images have been built
208
+ run : if [ $(wc -l < ${{ matrix.distro }}-container-images) -le 1 ]; then exit 1; fi
209
+
203
210
- name : Upload container images artifact
204
211
uses : actions/upload-artifact@v3
205
212
with :
206
213
name : ${{ matrix.distro }} container images
207
214
path : ${{ matrix.distro }}-container-images
208
215
retention-days : 7
209
216
210
- - name : Prune local Kolla container images over 1 week old
211
- run : |
212
- sudo docker image prune --all --force --filter until=168h --filter="label=kolla_version"
213
-
214
217
sync-container-repositories :
215
218
name : Trigger container image repository sync
216
219
needs :
You can’t perform that action at this time.
0 commit comments