From 1c87b64e744a78f286085f30dfd975b2b8f8b0ec Mon Sep 17 00:00:00 2001 From: Greg Kostin Date: Fri, 8 Dec 2023 08:48:36 -0500 Subject: [PATCH] multi platform image for lauth app --- .github/workflows/build-lauth-latest.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-lauth-latest.yml b/.github/workflows/build-lauth-latest.yml index 2970e58c..e9607c84 100644 --- a/.github/workflows/build-lauth-latest.yml +++ b/.github/workflows/build-lauth-latest.yml @@ -10,9 +10,12 @@ on: jobs: build: runs-on: ubuntu-latest + permissions: + contents: read + packages: write steps: - - name: Checkout - uses: actions/checkout@v4 + - name: Set up QEMU + uses: docker/setup-qemu-action@v2 - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 @@ -24,6 +27,9 @@ jobs: username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} + - name: Checkout + uses: actions/checkout@v4 + - name: Build image and push to GitHub Container Registry uses: docker/build-push-action@v5 with: @@ -32,3 +38,8 @@ jobs: tags: 'ghcr.io/mlibrary/lauth/lauth:${{ github.sha }}, ghcr.io/mlibrary/lauth/lauth:latest' file: lauth/Dockerfile target: production + platforms: linux/amd64, linux/arm64 + + - name: Image digest + run: | + echo '${{ steps.docker_build.outputs.digest }}'