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

Multiplatform build #32

Merged
merged 4 commits into from
Jul 19, 2024
Merged
Show file tree
Hide file tree
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
7 changes: 5 additions & 2 deletions .github/workflows/buildx-on-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@ on:
pull_request:
workflow_dispatch:

env:
PLATFORMS: linux/amd64,linux/arm64

jobs:
buildx-on-pr:
runs-on: ubuntu-22.04
if: github.event_name == 'pull_request'
steps:
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
Expand Down Expand Up @@ -37,6 +39,7 @@ jobs:
tags: |
ghcr.io/${{ env.IMAGE_NAME }}:testing
ghcr.io/${{ env.IMAGE_NAME }}:testing-${{ github.event.pull_request.number }}
platforms: linux/amd64
platforms: ${{ env.PLATFORMS }}
push: true
provenance: false
outputs: type=image,name=target,annotation-index.org.opencontainers.image.description=ZPA Connector
7 changes: 5 additions & 2 deletions .github/workflows/buildx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ on:
branches:
- 'master'

env:
PLATFORMS: linux/amd64,linux/arm64

jobs:
buildx:
runs-on: ubuntu-22.04
Expand All @@ -31,7 +34,7 @@ jobs:
context: .
file: Containerfile
tags: ${{ env.IMAGE_NAME }}:testing
platforms: linux/amd64
platforms: ${{ env.PLATFORMS }}
provenance: false

- name: Load Built Image and Get Variables
Expand Down Expand Up @@ -69,6 +72,6 @@ jobs:
ghcr.io/${{ env.IMAGE_NAME }}:${{ env.VER_FULL }}
ghcr.io/${{ env.IMAGE_NAME }}:${{ env.VER_MINOR }}
ghcr.io/${{ env.IMAGE_NAME }}:${{ env.VER_MAJOR }}
platforms: linux/amd64
platforms: ${{ env.PLATFORMS }}
push: true
provenance: false