build docker image separately for each platform

This commit is contained in:
anatawa12 2024-02-12 22:13:05 +09:00 committed by GitHub
parent b95e25004f
commit f7eb625ef9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 14 additions and 2 deletions

View File

@ -29,13 +29,25 @@ jobs:
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and Push to Docker Hub
- name: Build and Push to Docker Hub (amd64)
uses: docker/build-push-action@v5
with:
builder: ${{ steps.buildx.outputs.name }}
context: .
push: true
platforms: ${{ steps.buildx.outputs.platforms }}
platforms: linux/amd64
provenance: false
tags: misskey/misskey:develop
labels: develop
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Build and Push to Docker Hub (arm64)
uses: docker/build-push-action@v5
with:
builder: ${{ steps.buildx.outputs.name }}
context: .
push: true
platforms: linux/arm64
provenance: false
tags: misskey/misskey:develop
labels: develop