Author SHA1 Message Date
wayfinderak 1cacc79619 Merge pull request 'Build native architecture only on pull requests' (#3) from perf/ci-speed-20260914 into main
Build and Push Container / docker (push) Successful in 4m52s
2026-09-14 01:03:38 +00:00
butler-git-steward a6ca86105e Build native architecture only on pull requests
Build and Push Container / docker (pull_request) Successful in 42s
2026-09-14 00:40:30 +00:00
wayfinderak 768f4ae991 Merge pull request 'Disable unsupported optional GitHub uploads on Gitea' (#2) from fix/gitea-optional-uploads-20260911 into main
Build and Push Container / docker (push) Successful in 3m31s
2026-09-11 10:46:20 +00:00
+7 -2
View File
@@ -38,7 +38,7 @@ jobs:
cd . cd .
bash scripts/ci-select.sh bash scripts/ci-select.sh
- name: Set up QEMU - 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 uses: https://github.com/docker/setup-qemu-action@v3
with: with:
cache-image: "false" cache-image: "false"
@@ -77,6 +77,11 @@ jobs:
echo 'tags<<EOF' echo 'tags<<EOF'
echo "$tags" echo "$tags"
echo 'EOF' echo 'EOF'
if [[ "${GITHUB_EVENT_NAME}" == "pull_request" ]]; then
echo 'platforms=linux/amd64'
else
echo 'platforms=linux/amd64,linux/arm64'
fi
} >> "$GITHUB_OUTPUT" } >> "$GITHUB_OUTPUT"
- name: Build and push image - name: Build and push image
@@ -87,6 +92,6 @@ jobs:
with: with:
context: . context: .
push: ${{ github.event_name != 'pull_request' }} push: ${{ github.event_name != 'pull_request' }}
platforms: linux/amd64,linux/arm64 platforms: ${{ steps.prep.outputs.platforms }}
tags: ${{ steps.prep.outputs.tags }} tags: ${{ steps.prep.outputs.tags }}
labels: org.opencontainers.image.revision=${{ github.sha }} labels: org.opencontainers.image.revision=${{ github.sha }}