Skip to content

Commit

Permalink
fix multiplatform
Browse files Browse the repository at this point in the history
  • Loading branch information
raoulh committed Jul 14, 2023
1 parent c527599 commit aac084c
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/build-docker-base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@ jobs:
name: Build Docker image and push to repositories
# run only when code is compiling and tests are passing
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
platform:
- linux/amd64
- linux/arm/v6
- linux/arm/v7
- linux/arm64

# steps to perform in job
steps:
Expand All @@ -25,8 +33,6 @@ jobs:
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v2
with:
platforms: linux/amd64, linux/arm64, linux/armv7

- name: Login to Github Packages
uses: docker/login-action@v2
Expand All @@ -45,7 +51,8 @@ jobs:
ghcr.io/calaos/debian_deb_build_base:latest
ghcr.io/calaos/debian_deb_build_base:${{ github.sha }}
push: ${{ github.ref == 'refs/heads/main' }}
platforms: linux/amd64, linux/arm64, linux/armv7
platforms: ${{ matrix.platform }}
labels: ${{ steps.meta.outputs.labels }}

- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}

0 comments on commit aac084c

Please sign in to comment.