diff --git a/.github/workflows/coordinator-build-and-publish.yml b/.github/workflows/coordinator-build-and-publish.yml index 38ebc6972..08c0b72bd 100644 --- a/.github/workflows/coordinator-build-and-publish.yml +++ b/.github/workflows/coordinator-build-and-publish.yml @@ -35,7 +35,7 @@ jobs: build-and-publish: runs-on: ubuntu-22.04 name: Coordinator build - environment: docker-build-and-e2e + environment: ${{ github.ref != 'refs/heads/main' && 'docker-build-and-e2e' || '' }} env: COMMIT_TAG: ${{ inputs.commit_tag }} DEVELOP_TAG: ${{ inputs.develop_tag }} diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7c2983125..c203b8f2a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -196,6 +196,6 @@ jobs: - uses: strumwolf/delete-deployment-environment@v2 with: token: ${{ secrets.GITHUB_TOKEN }} - environment: docker-build-and-e2e + environment: ${{ github.ref != 'refs/heads/main' && 'docker-build-and-e2e' || '' }} ref: ${{ github.ref_name }} onlyRemoveDeployments: true diff --git a/.github/workflows/postman-build-and-publish.yml b/.github/workflows/postman-build-and-publish.yml index ceba35661..a0085848e 100644 --- a/.github/workflows/postman-build-and-publish.yml +++ b/.github/workflows/postman-build-and-publish.yml @@ -35,7 +35,7 @@ jobs: build-and-publish: runs-on: ubuntu-22.04 name: Postman build - environment: docker-build-and-e2e + environment: ${{ github.ref != 'refs/heads/main' && 'docker-build-and-e2e' || '' }} env: COMMIT_TAG: ${{ inputs.commit_tag }} DEVELOP_TAG: ${{ inputs.develop_tag }} diff --git a/.github/workflows/prover-build-and-publish.yml b/.github/workflows/prover-build-and-publish.yml index 9bc90b9b3..38337ebbc 100644 --- a/.github/workflows/prover-build-and-publish.yml +++ b/.github/workflows/prover-build-and-publish.yml @@ -38,7 +38,7 @@ jobs: build-and-publish: runs-on: ubuntu-latest name: Prover build - environment: docker-build-and-e2e + environment: ${{ github.ref != 'refs/heads/main' && 'docker-build-and-e2e' || '' }} env: COMMIT_TAG: ${{ inputs.commit_tag }} DEVELOP_TAG: ${{ inputs.develop_tag }} diff --git a/.github/workflows/reuse-run-e2e-tests.yml b/.github/workflows/reuse-run-e2e-tests.yml index b9516855d..96cbdada4 100644 --- a/.github/workflows/reuse-run-e2e-tests.yml +++ b/.github/workflows/reuse-run-e2e-tests.yml @@ -76,7 +76,7 @@ jobs: outputs: tests_outcome: ${{ steps.run_e2e_tests.outcome }} runs-on: ubuntu-22.04 - environment: docker-build-and-e2e + environment: ${{ github.ref != 'refs/heads/main' && 'docker-build-and-e2e' || '' }} steps: - name: Setup upterm session if: ${{ inputs.e2e-tests-with-ssh }} diff --git a/.github/workflows/traces-api-facade-build-and-publish.yml b/.github/workflows/traces-api-facade-build-and-publish.yml index f62efeed4..179474f46 100644 --- a/.github/workflows/traces-api-facade-build-and-publish.yml +++ b/.github/workflows/traces-api-facade-build-and-publish.yml @@ -35,7 +35,7 @@ jobs: build-and-publish: runs-on: ubuntu-latest name: Traces api facade build - environment: docker-build-and-e2e + environment: ${{ github.ref != 'refs/heads/main' && 'docker-build-and-e2e' || '' }} env: COMMIT_TAG: ${{ inputs.commit_tag }} DEVELOP_TAG: ${{ inputs.develop_tag }}