Publish Base Images #307
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: Publish Base Images | |
| on: | |
| # Nightly builds at 2 AM UTC | |
| schedule: | |
| - cron: '0 2 * * *' | |
| # On changes to Dockerfiles or the bake workflow | |
| push: | |
| branches: [main, dev] | |
| paths: | |
| - '.docker/**' | |
| - '.github/workflows/_publish-docker-bake.yaml' | |
| - '.github/workflows/publish-base-images.yaml' | |
| pull_request: | |
| paths: | |
| - '.docker/**' | |
| - '.github/workflows/_publish-docker-bake.yaml' | |
| - '.github/workflows/publish-base-images.yaml' | |
| # Manual trigger | |
| workflow_dispatch: | |
| # Prevent duplicate runs - cancel in-progress runs for same PR/branch | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.head.ref || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| publish: | |
| uses: ./.github/workflows/_publish-docker-bake.yaml | |
| with: | |
| registry: dockerhub | |
| bake_file: .docker/docker-bake.hcl | |
| # Build all targets in default group (ubuntu-22-ci, ubuntu-24-ci, ubuntu-24-tauri) | |
| # Image names come from the bake file itself | |
| bake_targets: "" | |
| secrets: | |
| DOCKERHUB_USER: ${{ secrets.DOCKERHUB_USER }} | |
| DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }} |