File tree Expand file tree Collapse file tree 1 file changed +16
-11
lines changed Expand file tree Collapse file tree 1 file changed +16
-11
lines changed Original file line number Diff line number Diff 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 :
You can’t perform that action at this time.
0 commit comments