Skip to content

Commit

Permalink
feat: build arm64 image
Browse files Browse the repository at this point in the history
  • Loading branch information
nijel committed Nov 5, 2024
1 parent 2226df7 commit 1d2981a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ jobs:

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Pin base for dev
run: sed -i "s@FROM weblate/base:latest@FROM weblate/base:sha-${{ github.sha }}@" dev/Dockerfile

- name: Login to Docker Hub
if: github.event_name != 'pull_request'
Expand Down Expand Up @@ -85,13 +88,13 @@ jobs:
tags: ${{ steps.base.outputs.tags }}
labels: ${{ steps.base.outputs.labels }}
load: true
platforms: linux/amd64,linux/arm64

- name: Pin base for dev
run: sed -i "s@FROM weblate/base:latest@FROM weblate/base:sha-${{ github.sha }}@" dev/Dockerfile
- name: Build and push (dev)
uses: docker/build-push-action@v6
with:
context: dev
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.dev.outputs.tags }}
labels: ${{ steps.dev.outputs.labels }}
platforms: linux/amd64,linux/arm64

0 comments on commit 1d2981a

Please sign in to comment.