build: add arm/v7 docker image

This commit is contained in:
Rongrong 2022-04-28 04:46:41 +08:00
parent f50954c30f
commit 2be86ac3f4
No known key found for this signature in database
GPG Key ID: 1C2D45D45AB7FE94

View File

@ -21,7 +21,7 @@ jobs:
uses: docker/build-push-action@v2 uses: docker/build-push-action@v2
with: with:
push: true push: true
platforms: linux/amd64,linux/386,linux/arm64 platforms: linux/amd64,linux/386,linux/arm64,linux/arm/v7
tags: ${{ secrets.DOCKER_USERNAME }}/slashbot:latest tags: ${{ secrets.DOCKER_USERNAME }}/slashbot:latest
cache-from: type=registry,ref=${{ secrets.DOCKER_USERNAME }}/slashbot:buildcache cache-from: type=registry,ref=${{ secrets.DOCKER_USERNAME }}/slashbot:buildcache
cache-to: type=registry,ref=${{ secrets.DOCKER_USERNAME }}/slashbot:buildcache,mode=max cache-to: type=registry,ref=${{ secrets.DOCKER_USERNAME }}/slashbot:buildcache,mode=max