Skip to content

Commit

Permalink
multi platform image for lauth app
Browse files Browse the repository at this point in the history
  • Loading branch information
gkostin1966 committed Dec 8, 2023
1 parent 76d22de commit 1c87b64
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/build-lauth-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand All @@ -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 }}'

0 comments on commit 1c87b64

Please sign in to comment.