Skip to content

Commit

Permalink
fix: build multi-arch images
Browse files Browse the repository at this point in the history
  • Loading branch information
juliuste committed Sep 18, 2023
1 parent 76ae8b6 commit 7bf63bb
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3
- name: Test (build)
uses: docker/build-push-action@v3
with:
platforms: linux/amd64,linux/arm64
push: false
cache-from: type=gha
cache-to: type=gha,mode=max
Expand All @@ -20,10 +21,12 @@ jobs:
needs: test
if: github.ref == 'refs/heads/main'
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
Expand All @@ -38,6 +41,7 @@ jobs:
uses: docker/build-push-action@v3
with:
target: website
platforms: linux/amd64,linux/arm64
push: true
tags: ghcr.io/${{github.repository}}-website:v1_${{steps.hash.outputs.hash}}_${{steps.datetime.outputs.datetime}}
cache-from: type=gha
Expand All @@ -46,6 +50,7 @@ jobs:
uses: docker/build-push-action@v3
with:
target: data
platforms: linux/amd64,linux/arm64
push: true
tags: ghcr.io/${{github.repository}}-data:v1_${{steps.hash.outputs.hash}}_${{steps.datetime.outputs.datetime}}
cache-from: type=gha
Expand Down

0 comments on commit 7bf63bb

Please sign in to comment.