Build and push multi-arch Docker images in CI

This commit is contained in:
Quentin Gliech 2022-02-02 15:54:01 +01:00
parent 43b043c565
commit 99b0676989
No known key found for this signature in database
GPG Key ID: 22D62B84552719FC

View File

@ -23,6 +23,9 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Log into registry ${{ env.REGISTRY }}
uses: docker/login-action@v1
with:
@ -39,6 +42,7 @@ jobs:
- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
platforms: linux/amd64,linux/arm64,linux/arm/v7
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}