Skip to content

Commit 337ea4c

Browse files
authored
Update build.yml
1 parent ea963d1 commit 337ea4c

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ jobs:
3838
with:
3939
lfs: true
4040
fetch-depth: 0
41+
- name: Set up Docker Buildx
42+
uses: docker/setup-buildx-action@v3
4143
# Use docker to build current directory ./Dockfile
4244
- name: Login to GitHub Container Registry
4345
uses: docker/login-action@v1
@@ -48,5 +50,7 @@ jobs:
4850

4951
- name: Build and push the Docker image
5052
run: |
51-
docker build . --tag ghcr.io/anduin2017/how-to-cook:latest
52-
docker push ghcr.io/anduin2017/how-to-cook:latest
53+
docker buildx build \
54+
--platform linux/amd64,linux/arm64 \
55+
--tag ghcr.io/anduin2017/how-to-cook:latest \
56+
--push .

0 commit comments

Comments
 (0)