config: upgrade github action
@@ -16,15 +16,18 @@ jobs:
with:
fetch-depth: 0
+ - uses: docker/setup-qemu-action@v2
+ - uses: docker/setup-buildx-action@v2
+
- name: Log in to the ghcr
- uses: docker/login-action@v1
+ uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Log in to the docker
- uses: docker/login-action@v1
+ uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
@@ -52,9 +55,10 @@ jobs:
- name: Build and push image
if: ${{ steps.meta.outputs.tags != '' }}
- uses: docker/build-push-action@v2
+ uses: docker/build-push-action@v3
with:
context: "."
+ platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
@@ -63,6 +67,7 @@ jobs:
uses: docker/build-push-action@v2
with:
context: "."
+ platforms: linux/amd64,linux/arm64
push: true
build-args: |
KEEP_SYMBOL=1
