Skip to content

Commit 1c87b64

Browse files
committed
multi platform image for lauth app
1 parent 76d22de commit 1c87b64

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

Diff for: .github/workflows/build-lauth-latest.yml

+13-2
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,12 @@ on:
1010
jobs:
1111
build:
1212
runs-on: ubuntu-latest
13+
permissions:
14+
contents: read
15+
packages: write
1316
steps:
14-
- name: Checkout
15-
uses: actions/checkout@v4
17+
- name: Set up QEMU
18+
uses: docker/setup-qemu-action@v2
1619

1720
- name: Set up Docker Buildx
1821
uses: docker/setup-buildx-action@v3
@@ -24,6 +27,9 @@ jobs:
2427
username: ${{ github.actor }}
2528
password: ${{ secrets.GITHUB_TOKEN }}
2629

30+
- name: Checkout
31+
uses: actions/checkout@v4
32+
2733
- name: Build image and push to GitHub Container Registry
2834
uses: docker/build-push-action@v5
2935
with:
@@ -32,3 +38,8 @@ jobs:
3238
tags: 'ghcr.io/mlibrary/lauth/lauth:${{ github.sha }}, ghcr.io/mlibrary/lauth/lauth:latest'
3339
file: lauth/Dockerfile
3440
target: production
41+
platforms: linux/amd64, linux/arm64
42+
43+
- name: Image digest
44+
run: |
45+
echo '${{ steps.docker_build.outputs.digest }}'

0 commit comments

Comments
 (0)