Skip to content

Commit

Permalink
split platforms on PR
Browse files Browse the repository at this point in the history
  • Loading branch information
mauwii committed Sep 15, 2023
1 parent bc7b315 commit bec74c1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
platforms: ${{ github.event_name == 'pull_request' && fromJson(format('["{0}","{1}"]', 'linux/amd64','linux/arm64')) || fromJson('["linux/amd64,linux/arm64"]') }}
include:
- from-version: '22.04'
from-version-major: '22'
Expand Down Expand Up @@ -119,7 +120,7 @@ jobs:
# github-token for the repository context
github-token: ${{ secrets.GITHUB_TOKEN }}
file: ./linux/${{ matrix.distro }}/Dockerfile
platforms: linux/amd64,linux/arm64
platforms: ${{ matrix.platforms }}
labels: ${{ steps.meta.outputs.labels }}
tags: ${{ steps.meta.outputs.tags }}
build-args: |
Expand Down

0 comments on commit bec74c1

Please sign in to comment.