@@ -281,3 +281,63 @@ jobs:
281281 manual-build : ${{ github.event_name == 'workflow_dispatch' }}
282282 build-args : |
283283 "UCX_VERSION=1.20.0"
284+
285+ cleanup-untagged-images :
286+ name : Clean up untagged images
287+ runs-on : ubuntu-latest
288+ needs :
289+ - build-and-publish-devel-main-image
290+ - build-and-publish-devel-packages-image
291+ - build-and-publish-runtime-cuda-base-image
292+ - build-and-publish-runtime-cudf-image
293+ - build-and-publish-runtime-cuml-image
294+ - build-and-publish-runtime-cugraph-image
295+ - build-and-publish-runtime-cuspatial-image
296+ - build-and-publish-runtime-glfw-image
297+ - build-and-publish-runtime-main-image
298+ - build-and-publish-runtime-demo-image
299+ env :
300+ repo : ${{ fromJSON(needs.build-and-publish-devel-main-image.amd64).repo }}
301+ tags : >
302+ ${{ fromJSON(needs.build-and-publish-devel-main-image.amd64).tag }}
303+ ${{ fromJSON(needs.build-and-publish-devel-packages-image.amd64).tag }}
304+ ${{ fromJSON(needs.build-and-publish-runtime-cuda-base-image.amd64).tag }}
305+ ${{ fromJSON(needs.build-and-publish-runtime-cudf-image.amd64).tag }}
306+ ${{ fromJSON(needs.build-and-publish-runtime-cuml-image.amd64).tag }}
307+ ${{ fromJSON(needs.build-and-publish-runtime-cugraph-image.amd64).tag }}
308+ ${{ fromJSON(needs.build-and-publish-runtime-cuspatial-image.amd64).tag }}
309+ ${{ fromJSON(needs.build-and-publish-runtime-glfw-image.amd64).tag }}
310+ ${{ fromJSON(needs.build-and-publish-runtime-main-image.amd64).tag }}
311+ ${{ fromJSON(needs.build-and-publish-runtime-demo-image.amd64).tag }}
312+ digests : >
313+ ${{ fromJSON(needs.build-and-publish-devel-main-image.amd64).digest }}
314+ ${{ fromJSON(needs.build-and-publish-devel-main-image.arm64).digest }}
315+ ${{ fromJSON(needs.build-and-publish-devel-packages-image.amd64).digest }}
316+ ${{ fromJSON(needs.build-and-publish-devel-packages-image.arm64).digest }}
317+ ${{ fromJSON(needs.build-and-publish-runtime-cuda-base-image.amd64).digest }}
318+ ${{ fromJSON(needs.build-and-publish-runtime-cuda-base-image.arm64).digest }}
319+ ${{ fromJSON(needs.build-and-publish-runtime-cudf-image.amd64).digest }}
320+ ${{ fromJSON(needs.build-and-publish-runtime-cudf-image.arm64).digest }}
321+ ${{ fromJSON(needs.build-and-publish-runtime-cuml-image.amd64).digest }}
322+ ${{ fromJSON(needs.build-and-publish-runtime-cuml-image.arm64).digest }}
323+ ${{ fromJSON(needs.build-and-publish-runtime-cugraph-image.amd64).digest }}
324+ ${{ fromJSON(needs.build-and-publish-runtime-cugraph-image.arm64).digest }}
325+ ${{ fromJSON(needs.build-and-publish-runtime-cuspatial-image.amd64).digest }}
326+ ${{ fromJSON(needs.build-and-publish-runtime-cuspatial-image.arm64).digest }}
327+ ${{ fromJSON(needs.build-and-publish-runtime-glfw-image.amd64).digest }}
328+ ${{ fromJSON(needs.build-and-publish-runtime-glfw-image.arm64).digest }}
329+ ${{ fromJSON(needs.build-and-publish-runtime-main-image.amd64).digest }}
330+ ${{ fromJSON(needs.build-and-publish-runtime-main-image.arm64).digest }}
331+ ${{ fromJSON(needs.build-and-publish-runtime-demo-image.amd64).digest }}
332+ ${{ fromJSON(needs.build-and-publish-runtime-demo-image.arm64).digest }}
333+ steps :
334+ - name : Clean up untagged images
335+ uses : snok/container-retention-policy@3b0972b2276b171b212f8c4efbca59ebba26eceb
336+ with :
337+ cut-off : 6hr
338+ tag-selection : untagged
339+ token : " ${{ github.token }}"
340+ image-tags : " ${{ env.tags }}"
341+ image-names : " ${{ env.repo }}"
342+ skip-shas : " ${{ env.digests }}"
343+ account : " ${{ github.actor == github.repository_owner && 'user' || github.repository_owner }}"
0 commit comments