Skip to content

Commit 4733d34

Browse files
committed
update
1 parent f580c36 commit 4733d34

File tree

1 file changed

+16
-11
lines changed

1 file changed

+16
-11
lines changed

.github/workflows/release.yml

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,22 @@ jobs:
2525
- name: Initialize submodules
2626
run: git submodule update --init --recursive
2727

28-
- name: "Build"
29-
run: |
30-
docker build -t bruttazz/apod-api:$TAG .
31-
working-directory: "."
32-
33-
- name: "Publish"
34-
id: publish
35-
run: |
36-
docker login -u bruttazz -p "${{ secrets.DOCKER_HUB_TOKEN }}"
37-
docker push bruttazz/apod-api:$TAG
38-
working-directory: "."
28+
- name: Set up Docker Buildx
29+
uses: docker/setup-buildx-action@v2
30+
31+
- name: Log in to DockerHub
32+
uses: docker/login-action@v2
33+
with:
34+
username: bruttazz
35+
password: ${{ secrets.DOCKER_HUB_TOKEN }}
36+
37+
- name: Build and push multi-arch image
38+
uses: docker/build-push-action@v4
39+
with:
40+
context: .
41+
push: true
42+
tags: bruttazz/apod-api:${{ env.TAG }}
43+
platforms: linux/amd64,linux/arm64
3944

4045
- name: Create Release
4146
env:

0 commit comments

Comments
 (0)