mirror of
https://github.com/vacp2p/linea-monorepo.git
synced 2026-01-09 20:27:58 -05:00
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:
@@ -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 }}
|
||||
|
||||
2
.github/workflows/main.yml
vendored
2
.github/workflows/main.yml
vendored
@@ -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
|
||||
|
||||
@@ -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 }}
|
||||
|
||||
@@ -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 }}
|
||||
|
||||
2
.github/workflows/reuse-run-e2e-tests.yml
vendored
2
.github/workflows/reuse-run-e2e-tests.yml
vendored
@@ -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 }}
|
||||
|
||||
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user