Skip to content

Commit cfff6a9

Browse files
committed
Upload to ghcr instead of docker
1 parent 76b20c4 commit cfff6a9

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

.github/workflows/delivery.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,25 +5,27 @@ on:
55

66
permissions:
77
contents: read
8+
packages: write
89

910
jobs:
1011
build:
1112
uses: docker/github-builder/.github/workflows/build.yml@v1
1213
permissions:
1314
contents: read
1415
id-token: write
16+
packages: write
1517
with:
1618
output: image
1719
push: true
1820
platforms: linux/amd64,linux/arm64
19-
meta-images: user/app
21+
meta-images: ghcr.io/${{ github.repository }}
2022
meta-tags: |
2123
type=ref,event=branch
2224
type=ref,event=pr
2325
type=semver,pattern={{version}}
2426
type=semver,pattern={{major}}.{{minor}}
2527
secrets:
2628
registry-auths: |
27-
- registry: docker.io
28-
username: ${{ vars.DOCKERHUB_USERNAME }}
29-
password: ${{ secrets.DOCKERHUB_TOKEN }}
29+
- registry: ghcr.io
30+
username: ${{ github.actor }}
31+
password: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)