Skip to content

Commit

Permalink
No environment deployment on main branch (#115)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
bradbown authored Oct 1, 2024
1 parent 7fd4704 commit 9fb04d3
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/coordinator-build-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion .github/workflows/postman-build-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/prover-build-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/reuse-run-e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/traces-api-facade-build-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit 9fb04d3

Please sign in to comment.