From 63d98fcf321b5706e629d2825e0b1f158ff3bec9 Mon Sep 17 00:00:00 2001 From: Irtaza Akram Date: Thu, 2 May 2024 12:45:16 +0500 Subject: [PATCH] fix: test on PR --- .github/workflows/push-docker-image.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/push-docker-image.yml b/.github/workflows/push-docker-image.yml index 4ce13c7a..a00b5823 100644 --- a/.github/workflows/push-docker-image.yml +++ b/.github/workflows/push-docker-image.yml @@ -10,7 +10,7 @@ on: jobs: push: runs-on: ubuntu-latest - if: github.event_name == 'push' + # if: github.event_name == 'push' steps: # Use the release name as the image tag if we're building an open release tag. @@ -42,13 +42,14 @@ jobs: - name: Build and push Dev Docker image uses: docker/build-push-action@v5 with: - push: true + # push: true + push: ${{ github.event_name == 'pull_request' }} target: dev tags: ${{ steps.get-tag-name.outputs.result }},${{ github.sha }} platforms: linux/amd64,linux/arm64 # - name: Build and push prod Docker image - # uses: docker/build-push-action@v4 + # uses: docker/build-push-action@v5 # with: # push: true # target: prod