Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add arm64 docker build to delivery workflow #392

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 28 additions & 18 deletions .github/workflows/delivery.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ jobs:
runs-on: ubuntu-latest
needs: prepare
steps:
- uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Login to GitHub Container Registry
uses: docker/login-action@v2
Expand All @@ -73,31 +74,40 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build Docker image
run: docker build -t ghcr.io/${{ github.repository_owner }}/irma:${{ github.sha }} .

- name: Tag Docker image (edge)
if: needs.prepare.outputs.is-head-master == 'true'
run: docker tag ghcr.io/${{ github.repository_owner }}/irma:${{ github.sha }} ghcr.io/${{ github.repository_owner }}/irma:edge

- name: Tag Docker image (version)
if: github.event_name == 'release'
run: docker tag ghcr.io/${{ github.repository_owner }}/irma:${{ github.sha }} ghcr.io/${{ github.repository_owner }}/irma:${{ github.event.release.tag_name }}

- name: Tag Docker image (latest)
if: needs.prepare.outputs.is-latest-release == 'true'
run: docker tag ghcr.io/${{ github.repository_owner }}/irma:${{ github.sha }} ghcr.io/${{ github.repository_owner }}/irma:latest
uses: docker/build-push-action@v6
with:
platforms: linux/amd64,linux/arm64
tags: ghcr.io/${{ github.repository_owner }}/irma:${{ github.sha }}

- name: Push Docker image (edge)
if: needs.prepare.outputs.is-head-master == 'true'
run: docker push ghcr.io/${{ github.repository_owner }}/irma:edge
uses: docker/build-push-action@v6
with:
platforms: linux/amd64,linux/arm64
push: true
tags: |
ghcr.io/${{ github.repository_owner }}/irma:${{ github.sha }}
ghcr.io/${{ github.repository_owner }}/irma:edge

- name: Push Docker image (version)
if: github.event_name == 'release'
run: docker push ghcr.io/${{ github.repository_owner }}/irma:${{ github.event.release.tag_name }}
uses: docker/build-push-action@v6
with:
platforms: linux/amd64,linux/arm64
push: true
tags: |
ghcr.io/${{ github.repository_owner }}/irma:${{ github.sha }}
ghcr.io/${{ github.repository_owner }}/irma:${{ github.event.release.tag_name }}

- name: Tag Docker image (latest)
- name: Push Docker image (latest)
if: needs.prepare.outputs.is-latest-release == 'true'
run: docker push ghcr.io/${{ github.repository_owner }}/irma:latest
uses: docker/build-push-action@v6
with:
platforms: linux/amd64,linux/arm64
push: true
tags: |
ghcr.io/${{ github.repository_owner }}/irma:${{ github.sha }}
ghcr.io/${{ github.repository_owner }}/irma:latest

build-release-artifact:
needs: prepare
Expand Down