Compare commits
3
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1cacc79619
|
||
|
|
a6ca86105e
|
||
|
|
768f4ae991
|
@@ -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 }}
|
||||||
|
|||||||
Reference in New Issue
Block a user