diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2cb94d31..7d04005f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,9 +1,10 @@ name: "Build & Push EVM Gateway Image to Public Repo" on: + pull_request: push: - tags: - - '*' + branches: + - "main" env: DOCKER_IMAGE_URL: ${{ vars.REPO_DOCKER_IMAGE_URL }} @@ -40,5 +41,4 @@ jobs: - name: Docker Auth run: |- gcloud auth configure-docker ${{ vars.GAR_LOCATION }}-docker.pkg.dev - docker build -t ${{ env.DOCKER_IMAGE_URL }}:${{ steps.set_version.outputs.GATEWAY_VERSION }} --build-arg GATEWAY_VERSION=${{ steps.set_version.outputs.GATEWAY_VERSION }} --file Dockerfile . - docker push ${{ env.DOCKER_IMAGE_URL }}:${{ steps.set_version.outputs.GATEWAY_VERSION }} + docker build -t ${{ env.DOCKER_IMAGE_URL }}:${{ steps.set_version.outputs.GATEWAY_VERSION }} --build-arg GATEWAY_VERSION=${{ steps.set_version.outputs.GATEWAY_VERSION }} --file Dockerfile . \ No newline at end of file