Skip to content

Commit 1053f72

Browse files
committed
Don't push Docker images on pull requests and only build amd64 for PR validation
1 parent 1136f85 commit 1053f72

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/docker-image.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ jobs:
4343
- name: Build and Push Docker image
4444
uses: docker/build-push-action@v5
4545
with:
46-
platforms: linux/amd64,linux/arm64
46+
platforms: ${{ github.event_name == 'pull_request' && 'linux/amd64' || 'linux/amd64,linux/arm64' }}
4747
tags: |
4848
jonathanpotts/babelfishpg:${{ steps.get_babelfish_latest.outputs.babelfish_tag }}
4949
jonathanpotts/babelfishpg:latest
5050
build-args:
5151
BABELFISH_VERSION=${{ steps.get_babelfish_latest.outputs.babelfish_tag }}
52-
push: true
52+
push: ${{ github.event_name != 'pull_request' }}

0 commit comments

Comments
 (0)