update docker/build-push-action@v4 (#362)

add platforms to build arm image
This commit is contained in:
Sascha 2023-08-25 16:15:56 +02:00 committed by GitHub
parent d6736229a0
commit 450902e57d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -67,11 +67,12 @@ jobs:
- name: Coverage report
run: mix coveralls.post --token ${{ secrets.COVERALLS_REPO_TOKEN }} --name 'github-actions' --branch ${{ github.ref }} --committer ${{ github.actor }} --sha ${{ github.sha }}
- uses: docker/build-push-action@v1
- uses: docker/build-push-action@v4
if: ${{ startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/master' }}
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
repository: mirego/accent
platforms: linux/amd64,linux/arm64
tag_with_ref: true
push: ${{ startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/master' }}