Skip to content

build

build #1066

Workflow file for this run

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@70ac3fc303efa83d2b94905e6ab78bb83cbdc2ae # v1.11.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 }}