Skip to content

Commit 3786be6

Browse files
committed
Use official actions
1 parent 6d1f381 commit 3786be6

1 file changed

Lines changed: 8 additions & 9 deletions

File tree

.github/workflows/docker-build.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ jobs:
1818
permissions:
1919
packages: write
2020
steps:
21-
- name: Checkout repository
22-
uses: actions/checkout@v4
21+
- name: Setup Docker Buildx
22+
uses: docker/setup-buildx-action@v3
2323

2424
- name: Log in to GHCR
2525
uses: docker/login-action@v3
@@ -28,10 +28,9 @@ jobs:
2828
username: ${{ github.actor }}
2929
password: ${{ secrets.GITHUB_TOKEN }}
3030

31-
- name: Build the Docker image
32-
run: |
33-
docker build -t ghcr.io/${{ github.repository }}:latest .
34-
35-
- name: Push the Docker image
36-
run: |
37-
docker push ghcr.io/${{ github.repository }}:latest
31+
- name: Build and push
32+
uses: docker/build-push-action@v6
33+
with:
34+
platforms: linux/amd64,linux/arm64
35+
push: true
36+
tags: ghcr.io/${{ github.repository }}:latest

0 commit comments

Comments
 (0)