Build native architecture only on pull requests #3

Merged
wayfinderak merged 1 commits from perf/ci-speed-20260914 into main 2026-09-14 01:03:40 +00:00
+7 -2
View File
@@ -38,7 +38,7 @@ jobs:
cd .
bash scripts/ci-select.sh
- name: Set up QEMU
if: ${{ steps.delivery.outputs.run == 'true' }}
if: ${{ steps.delivery.outputs.run == 'true' && github.event_name != 'pull_request' }}
uses: https://github.com/docker/setup-qemu-action@v3
with:
cache-image: "false"
@@ -77,6 +77,11 @@ jobs:
echo 'tags<<EOF'
echo "$tags"
echo 'EOF'
if [[ "${GITHUB_EVENT_NAME}" == "pull_request" ]]; then
echo 'platforms=linux/amd64'
else
echo 'platforms=linux/amd64,linux/arm64'
fi
} >> "$GITHUB_OUTPUT"
- name: Build and push image
@@ -87,6 +92,6 @@ jobs:
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
platforms: linux/amd64,linux/arm64
platforms: ${{ steps.prep.outputs.platforms }}
tags: ${{ steps.prep.outputs.tags }}
labels: org.opencontainers.image.revision=${{ github.sha }}