Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a6ca86105e
|
||
|
|
768f4ae991
|
||
|
|
648bb34237
|
||
|
|
4ec10db3bc
|
@@ -38,8 +38,10 @@ 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"
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
if: ${{ steps.delivery.outputs.run == 'true' }}
|
||||
@@ -75,14 +77,21 @@ 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
|
||||
if: ${{ steps.delivery.outputs.run == 'true' }}
|
||||
uses: https://github.com/docker/build-push-action@v6
|
||||
env:
|
||||
DOCKER_BUILD_RECORD_UPLOAD: "false"
|
||||
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 }}
|
||||
|
||||
Reference in New Issue
Block a user