Skip to content

Commit 067e50b

Browse files
authored
Merge pull request #369 from crazy-max/docker-github-builder
ci: use docker/github-builder to build, sign and push images
2 parents ccb004d + a00291f commit 067e50b

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

.github/workflows/build.yml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,20 @@ on:
2222

2323
jobs:
2424
build:
25-
uses: crazy-max/.github/.github/workflows/bake-distribute-mp.yml@260f9dc454be47686f6a3ecc777beea64d104f41
25+
uses: docker/github-builder/.github/workflows/bake.yml@v1
2626
permissions:
27-
# same as global permissions
28-
contents: read
27+
contents: read # same as global permissions
28+
id-token: write # for signing attestation(s) with GitHub OIDC Token
2929
with:
30+
setup-qemu: true
3031
target: image-all
32+
cache: true
33+
cache-scope: image
34+
output: image
3135
push: ${{ github.event_name != 'pull_request' }}
3236
set-meta-labels: true
33-
meta-image: anonaddy/anonaddy
37+
meta-images: |
38+
anonaddy/anonaddy
3439
meta-tags: |
3540
type=match,pattern=(.*)-r,group=1
3641
type=ref,event=pr
@@ -40,5 +45,7 @@ jobs:
4045
org.opencontainers.image.description=Anonymous Email Forwarding
4146
org.opencontainers.image.vendor=CrazyMax
4247
secrets:
43-
login-username: ${{ secrets.DOCKER_USERNAME }}
44-
login-password: ${{ secrets.DOCKER_PASSWORD }}
48+
registry-auths: |
49+
- registry: docker.io
50+
username: ${{ vars.DOCKER_USERNAME }}
51+
password: ${{ secrets.DOCKER_PASSWORD }}

0 commit comments

Comments
 (0)