Merge pull request #515 from crazy-max/network-bind #967
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 | |
| # https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions | |
| permissions: | |
| contents: read | |
| on: | |
| schedule: | |
| - cron: '0 8 */6 * *' # every 6 days to keep cache | |
| push: | |
| branches: | |
| - 'master' | |
| tags: | |
| - '*' | |
| paths-ignore: | |
| - '**.md' | |
| pull_request: | |
| paths-ignore: | |
| - '**.md' | |
| jobs: | |
| build: | |
| uses: docker/github-builder/.github/workflows/bake.yml@v1 | |
| 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 }} |