push sha tag #12
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: ci | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - 'main' | |
| tags: | |
| - 'v*' | |
| pull_request: | |
| jobs: | |
| build-ghcr: | |
| uses: crazy-max/builder-action/.github/workflows/build.yml@main | |
| permissions: | |
| contents: read | |
| packages: write | |
| id-token: write | |
| with: | |
| push: ${{ github.event_name != 'pull_request' }} | |
| meta-image: ghcr.io/crazy-max/test-builder-action | |
| meta-tags: | | |
| type=ref,event=branch | |
| type=ref,event=pr | |
| type=sha | |
| login-registry: ghcr.io | |
| login-username: ${{ github.actor }} | |
| secrets: | |
| login-password: ${{ secrets.GITHUB_TOKEN }} | |
| build-dockerhub: | |
| uses: crazy-max/builder-action/.github/workflows/build.yml@main | |
| permissions: | |
| contents: read | |
| packages: write | |
| id-token: write | |
| with: | |
| push: ${{ github.event_name != 'pull_request' }} | |
| meta-image: crazymax/test-builder-action | |
| meta-tags: | | |
| type=ref,event=branch | |
| type=ref,event=pr | |
| type=sha | |
| login-username: crazymax | |
| secrets: | |
| login-password: ${{ secrets.DOCKERHUB_TOKEN }} | |
| build-ghcr-multi: | |
| uses: crazy-max/builder-action/.github/workflows/build.yml@main | |
| permissions: | |
| contents: read | |
| packages: write | |
| id-token: write | |
| with: | |
| push: ${{ github.event_name != 'pull_request' }} | |
| meta-image: ghcr.io/crazy-max/test-builder-action | |
| meta-tags: | | |
| type=ref,event=branch | |
| type=ref,event=pr | |
| type=sha | |
| meta-flavor: | | |
| suffix=-multi,latest=true | |
| login-registry: ghcr.io | |
| login-username: ${{ github.actor }} | |
| build-platforms: linux/amd64,linux/arm64 | |
| secrets: | |
| login-password: ${{ secrets.GITHUB_TOKEN }} | |
| build-dockerhub-multi: | |
| uses: crazy-max/builder-action/.github/workflows/build.yml@main | |
| permissions: | |
| contents: read | |
| packages: write | |
| id-token: write | |
| with: | |
| push: ${{ github.event_name != 'pull_request' }} | |
| meta-image: crazymax/test-builder-action | |
| meta-tags: | | |
| type=ref,event=branch | |
| type=ref,event=pr | |
| type=sha | |
| meta-flavor: | | |
| suffix=-multi,latest=true | |
| login-username: crazymax | |
| build-platforms: linux/amd64,linux/arm64 | |
| secrets: | |
| login-password: ${{ secrets.DOCKERHUB_TOKEN }} |