Docker images refresh nightly #6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Docker images refresh nightly | |
| # | |
| # This workflow is the nightly and manual entry point for refreshing every | |
| # image in the registry. `docker-ci-images-refresh.yml` rebuilds the tooling | |
| # images, and `docker-freeradius-images-refresh.yml` builds the FreeRADIUS | |
| # image chain afterwards. The FreeRADIUS image builds run inside the | |
| # 'docker-cli' and Docker-in-Docker (dind) job containers that | |
| # `docker-ci-images-refresh.yml` publishes, so `docker-ci-images-refresh.yml` | |
| # runs first. | |
| # | |
| # A push never triggers this workflow. `ci-pipeline.yml` calls the same | |
| # two workflows directly and gates each call on what the commit changed. | |
| # | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: '0 1 * * *' | |
| concurrency: | |
| # | |
| # Only one refresh runs at a time, and a new run queues instead of | |
| # cancelling the run in flight. An interrupted refresh leaves the | |
| # registry partially updated, whereas a queued second run re-publishes | |
| # everything cleanly. | |
| # | |
| group: docker-ci-images-refresh | |
| cancel-in-progress: false | |
| jobs: | |
| docker_ci_images_refresh: | |
| name: Docker CI images refresh | |
| uses: ./.github/workflows/docker-ci-images-refresh.yml | |
| secrets: inherit | |
| docker_freeradius_images_refresh: | |
| name: Docker FreeRADIUS images refresh | |
| needs: docker_ci_images_refresh | |
| if: ${{ !cancelled() && needs.docker_ci_images_refresh.result == 'success' }} | |
| uses: ./.github/workflows/docker-freeradius-images-refresh.yml | |
| secrets: inherit |