Set build and e2e test workflows to test-and-builds environment (#49)

* Added test-and-builds environment to some workflows

* Rename environment

* Cleanup deployments for this branch

* Testing hardcoded branch name

* Testing github variables

* Use github.ref_name in deployment cleanup

* Add needs to cleanup

* Add always() tag to job to delete deployments even when jobs fail
This commit is contained in:
Bradley Bown
2024-09-27 10:59:02 +01:00
committed by GitHub
parent 2ee4363da2
commit 5d7cda2bd5
6 changed files with 17 additions and 0 deletions

View File

@@ -187,3 +187,15 @@ jobs:
untested_tag_suffix: ${{ needs.store-image-name-and-tags.outputs.untested_tag_suffix }}
image_names: '["consensys/linea-coordinator", "consensys/linea-postman", "consensys/linea-prover", "consensys/linea-traces-api-facade"]'
secrets: inherit
cleanup-deployments:
needs: [ run-e2e-tests, run-e2e-tests-geth-tracing ]
if: ${{ always() }}
runs-on: besu-arm64
steps:
- uses: strumwolf/delete-deployment-environment@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
environment: docker-build-and-e2e
ref: ${{ github.ref_name }}
onlyRemoveDeployments: true