No environment deployment on main branch (#115)

* Testing empty string for environment

* Test if else for environment tag

* Test if else for environment tag

* Test if else for environment tag

* If branch is main don't manual environment not required
This commit is contained in:
Bradley Bown
2024-10-01 13:57:23 +01:00
committed by GitHub
parent 7fd470489e
commit 9fb04d33aa
6 changed files with 6 additions and 6 deletions

View File

@@ -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 }}

View File

@@ -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

View File

@@ -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 }}

View File

@@ -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 }}

View File

@@ -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 }}

View File

@@ -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 }}