docs: refactor and expand docs #207
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 CI | |
| on: | |
| push: | |
| pull_request: | |
| permissions: | |
| contents: read | |
| packages: write | |
| attestations: write | |
| id-token: write | |
| env: | |
| REGISTRY: ghcr.io | |
| IMAGE_NAME: ${{ github.repository }} | |
| jobs: | |
| try_docker: | |
| uses: ./.github/workflows/docker-shared-steps.yml | |
| with: | |
| runs_on: "ubuntu-latest" | |
| continue_on_error: true | |
| fallback_docker: | |
| # NOTE: This fallback job runs only when the `try_docker` job fails. | |
| # | |
| # Because both the try and fallback invoke the same reusable workflow, the | |
| # GitHub PR UI may display duplicated or expanded workflow sections. In | |
| # addition, using `continue-on-error` inside the reusable jobs can make | |
| # checks appear as failed in the PR interface even though the fallback | |
| # subsequently handled the failure. This is a cosmetic artifact of the | |
| # try→fallback pattern and does not indicate a functional regression. | |
| needs: [try_docker] | |
| if: ${{ failure() }} | |
| uses: ./.github/workflows/docker-shared-steps.yml | |
| with: | |
| runs_on: "self-hosted" |