Skip to content

Commit f9b11a0

Browse files
committed
ci: update docker build push
1 parent 942ed7b commit f9b11a0

File tree

1 file changed

+14
-11
lines changed

1 file changed

+14
-11
lines changed

.github/workflows/docker-pub.yml

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,24 +17,27 @@ jobs:
1717
run: echo "::set-output name=dtag::ghcr.io/barelyhuman/goblin:nightly"
1818
id: meta
1919

20-
- name: Login to GitHub Container registry
21-
uses: docker/login-action@v1
22-
env:
23-
GITHUB_USER: ${{ github.actor }}
24-
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
20+
- name: Set up QEMU
21+
uses: docker/setup-qemu-action@v3
22+
- name: Set up Docker Buildx
23+
uses: docker/setup-buildx-action@v3
24+
25+
- name: Login to GitHub Container Registry
26+
uses: docker/login-action@v3
2527
with:
2628
registry: ghcr.io
27-
username: $GITHUB_USER
28-
password: ${{ secrets.GH_TOKEN }}
29+
username: ${{ github.repository_owner }}
30+
password: ${{ secrets.GITHUB_TOKEN }}
2931

30-
- name: Build and Push Docker Image
32+
- name: Build and push
33+
uses: docker/build-push-action@v5
3134
env:
3235
REGISTRY: ghcr.io
33-
OWNER: barelyhuman
36+
OWNER: ${{ github.repository_owner }}
3437
IMAGE_NAME: ${{ github.repository }}
35-
uses: docker/build-push-action@v2
3638
with:
3739
context: .
3840
file: Dockerfile
41+
platforms: linux/amd64,linux/arm64
3942
push: true
40-
tags: ${{ steps.meta.outputs.dtag }}
43+
tags: ${{ steps.meta.outputs.dtag }}

0 commit comments

Comments
 (0)