Skip to content

Commit

Permalink
build arm64 image
Browse files Browse the repository at this point in the history
  • Loading branch information
nr23730 committed Aug 12, 2024
1 parent 0200cb5 commit c03a134
Showing 1 changed file with 25 additions and 14 deletions.
39 changes: 25 additions & 14 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,28 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- name: Build the Docker image
run: docker build . --file Dockerfile --tag ghcr.io/buschlab/fhirspark:latest --label maintainer="Niklas Reimer <${{ secrets.EMAIL }}>"
- name: Login to Docker registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Upload Docker image
run: docker push ghcr.io/buschlab/fhirspark:latest

permissions:
packages: write
- name: Set up QEMU
uses: docker/setup-qemu-action@v3

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

- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4

- name: Login to Docker registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Upload Docker image
run: docker push ghcr.io/buschlab/fhirspark:latest

- name: Build and push image
id: docker_build
uses: docker/build-push-action@v5
with:
push: true
tags: ghcr.io/buschlab/fhirspark:latest
platforms: linux/amd64,linux/arm64/v8

0 comments on commit c03a134

Please sign in to comment.