-
-
Notifications
You must be signed in to change notification settings - Fork 122
53 lines (49 loc) · 1.44 KB
/
Copy pathbuild.yml
File metadata and controls
53 lines (49 loc) · 1.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
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@70313223e2665c3211b454b3fea6534624e78d64 # v1.4.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 }}