Merge pull request #554 from crazy-max/dependabot/github_actions/craz… #1053
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: build | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| on: | |
| schedule: | |
| - cron: '0 8 */6 * *' | |
| push: | |
| branches: | |
| - 'master' | |
| tags: | |
| - '*' | |
| pull_request: | |
| jobs: | |
| build: | |
| uses: docker/github-builder/.github/workflows/bake.yml@073833262a23a17675c95c4541ab063b7646756b # v1.9.0 | |
| permissions: | |
| contents: read # same as global permissions | |
| id-token: write # for signing attestation(s) with GitHub OIDC Token | |
| packages: write # required to push to GHCR | |
| with: | |
| setup-qemu: true | |
| target: image-all | |
| cache: true | |
| cache-scope: build | |
| output: image | |
| push: ${{ github.event_name != 'pull_request' }} | |
| set-meta-labels: true | |
| meta-images: | | |
| crazymax/rtorrent-rutorrent | |
| ghcr.io/crazy-max/rtorrent-rutorrent | |
| meta-tags: | | |
| type=match,pattern=(.*)-r,group=1 | |
| type=ref,event=pr | |
| type=edge | |
| meta-labels: | | |
| org.opencontainers.image.title=rTorrent and ruTorrent | |
| org.opencontainers.image.description=rTorrent and ruTorrent | |
| org.opencontainers.image.vendor=CrazyMax | |
| secrets: | |
| registry-auths: | | |
| - registry: docker.io | |
| username: ${{ vars.DOCKER_USERNAME }} | |
| password: ${{ secrets.DOCKER_PASSWORD }} | |
| - registry: ghcr.io | |
| username: ${{ github.repository_owner }} | |
| password: ${{ secrets.GITHUB_TOKEN }} |