Skip to content

Commit 45b2250

Browse files
committed
[NRL-1375] Switch all remaining workflows to run on codebuild project
1 parent 0e9c249 commit 45b2250

File tree

6 files changed

+21
-21
lines changed

6 files changed

+21
-21
lines changed

.github/workflows/activate-stack.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ permissions:
2323
jobs:
2424
activate-stack:
2525
name: Activate ${{ inputs.stack_name }} for ${{ inputs.environment }}
26-
runs-on: [self-hosted, ci]
26+
runs-on: codebuild-nhsd-nrlf-ci-build-project-${{ github.run_id }}-${{ github.run_attempt }}
2727
environment: ${{ inputs.environment }}
2828

2929
steps:

.github/workflows/persistent-environment.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ permissions:
2222
jobs:
2323
build:
2424
name: Build - ${{ inputs.branch_name }}
25-
runs-on: [self-hosted, ci]
25+
runs-on: codebuild-nhsd-nrlf-ci-build-project-${{ github.run_id }}-${{ github.run_attempt }}
2626

2727
steps:
2828
- name: Git clone - ${{ inputs.branch_name }}
@@ -91,7 +91,7 @@ jobs:
9191
name: Terraform Plan - ${{ inputs.environment }}
9292
needs: [build]
9393
environment: ${{ inputs.environment }}
94-
runs-on: [self-hosted, ci]
94+
runs-on: codebuild-nhsd-nrlf-ci-build-project-${{ github.run_id }}-${{ github.run_attempt }}
9595

9696
steps:
9797
- name: Git clone - ${{ inputs.branch_name }}
@@ -170,7 +170,7 @@ jobs:
170170
terraform-apply:
171171
name: Terraform Apply - ${{ inputs.environment }}
172172
needs: [terraform-plan]
173-
runs-on: [self-hosted, ci]
173+
runs-on: codebuild-nhsd-nrlf-ci-build-project-${{ github.run_id }}-${{ github.run_attempt }}
174174
environment: ${{ inputs.environment }}
175175

176176
steps:
@@ -252,7 +252,7 @@ jobs:
252252
activate-stack:
253253
name: Activate - ${{ inputs.environment }}
254254
needs: [terraform-apply]
255-
runs-on: [self-hosted, ci]
255+
runs-on: codebuild-nhsd-nrlf-ci-build-project-${{ github.run_id }}-${{ github.run_attempt }}
256256
environment: ${{ inputs.environment }}
257257

258258
steps:
@@ -297,7 +297,7 @@ jobs:
297297
post-release-verify:
298298
name: Verify - ${{ inputs.environment }}
299299
needs: [activate-stack]
300-
runs-on: [self-hosted, ci]
300+
runs-on: codebuild-nhsd-nrlf-ci-build-project-${{ github.run_id }}-${{ github.run_attempt }}
301301
environment: ${{ inputs.environment }}
302302

303303
steps:
@@ -342,7 +342,7 @@ jobs:
342342
name: Rollback - ${{ inputs.environment }}
343343
needs: [post-release-verify]
344344
if: always() && ( needs.post-release-verify.result == 'failure' )
345-
runs-on: [self-hosted, ci]
345+
runs-on: codebuild-nhsd-nrlf-ci-build-project-${{ github.run_id }}-${{ github.run_attempt }}
346346
environment: ${{ inputs.environment }}
347347

348348
steps:

.github/workflows/pr-env-deploy.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ permissions:
1919
jobs:
2020
set-environment-id:
2121
name: Set Environment ID
22-
runs-on: [self-hosted, ci]
22+
runs-on: codebuild-nhsd-nrlf-ci-build-project-${{ github.run_id }}-${{ github.run_attempt }}
2323
environment: pull-request
2424
steps:
2525
- name: Set a ID based on the branch name
@@ -44,7 +44,7 @@ jobs:
4444

4545
build:
4646
name: Build Application
47-
runs-on: [self-hosted, ci]
47+
runs-on: codebuild-nhsd-nrlf-ci-build-project-${{ github.run_id }}-${{ github.run_attempt }}
4848
environment: pull-request
4949
steps:
5050
- name: Git Clone - ${{ github.event.pull_request.head.ref }}
@@ -121,7 +121,7 @@ jobs:
121121
122122
deploy:
123123
name: Deploy PR Environment
124-
runs-on: [self-hosted, ci]
124+
runs-on: codebuild-nhsd-nrlf-ci-build-project-${{ github.run_id }}-${{ github.run_attempt }}
125125
environment: pull-request
126126
needs: [set-environment-id, build]
127127

@@ -221,7 +221,7 @@ jobs:
221221
name: Run Integration Tests
222222
needs: [set-environment-id, deploy]
223223
environment: pull-request
224-
runs-on: [self-hosted, ci]
224+
runs-on: codebuild-nhsd-nrlf-ci-build-project-${{ github.run_id }}-${{ github.run_attempt }}
225225

226226
steps:
227227
- name: Git Clone - ${{ github.event.pull_request.head.ref }}
@@ -270,7 +270,7 @@ jobs:
270270
name: Run Smoke Tests
271271
needs: [set-environment-id, integration-test]
272272
environment: pull-request
273-
runs-on: [self-hosted, ci]
273+
runs-on: codebuild-nhsd-nrlf-ci-build-project-${{ github.run_id }}-${{ github.run_attempt }}
274274
steps:
275275
- name: Git Clone - ${{ github.event.pull_request.head.ref }}
276276
uses: actions/checkout@v4
@@ -317,7 +317,7 @@ jobs:
317317
name: Run Performance Tests
318318
needs: [set-environment-id, integration-test]
319319
environment: pull-request
320-
runs-on: [self-hosted, ci]
320+
runs-on: codebuild-nhsd-nrlf-ci-build-project-${{ github.run_id }}-${{ github.run_attempt }}
321321

322322
steps:
323323
- name: Git Clone - ${{ github.event.pull_request.head.ref }}

.github/workflows/pr-env-destroy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ permissions:
1919
jobs:
2020
set-environment-id:
2121
name: Set Environment ID
22-
runs-on: [self-hosted, ci]
22+
runs-on: codebuild-nhsd-nrlf-ci-build-project-${{ github.run_id }}-${{ github.run_attempt }}
2323
steps:
2424
- name: Set a ID based on the branch name
2525
id: set_environment_id
@@ -46,7 +46,7 @@ jobs:
4646
name: Destroy PR Environment
4747
needs: [set-environment-id]
4848
environment: pull-request
49-
runs-on: [self-hosted, ci]
49+
runs-on: codebuild-nhsd-nrlf-ci-build-project-${{ github.run_id }}-${{ github.run_attempt }}
5050

5151
steps:
5252
- name: Git Clone - ${{ github.event.pull_request.head.ref }}

.github/workflows/rollback-stack.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ permissions:
1818
jobs:
1919
rollback-stack:
2020
name: Rollback to inactive stack for ${{ inputs.environment }}
21-
runs-on: [self-hosted, ci]
21+
runs-on: codebuild-nhsd-nrlf-ci-build-project-${{ github.run_id }}-${{ github.run_attempt }}
2222
environment: ${{ inputs.environment }}
2323

2424
steps:

.github/workflows/update-lambda-permissions.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ permissions:
2929
jobs:
3030
check-versions:
3131
name: Check versions
32-
runs-on: [self-hosted, ci]
32+
runs-on: codebuild-nhsd-nrlf-ci-build-project-${{ github.run_id }}-${{ github.run_attempt }}
3333

3434
steps:
3535
- name: Git clone - ${{ github.ref }}
@@ -90,7 +90,7 @@ jobs:
9090
9191
build-permissions:
9292
name: Build permissions
93-
runs-on: [self-hosted, ci]
93+
runs-on: codebuild-nhsd-nrlf-ci-build-project-${{ github.run_id }}-${{ github.run_attempt }}
9494
environment: ${{ inputs.environment }}
9595

9696
needs: [check-versions]
@@ -142,7 +142,7 @@ jobs:
142142

143143
pull-deployed-lambdas:
144144
name: Pull deployed lambdas
145-
runs-on: [self-hosted, ci]
145+
runs-on: codebuild-nhsd-nrlf-ci-build-project-${{ github.run_id }}-${{ github.run_attempt }}
146146
environment: ${{ inputs.environment }}
147147

148148
needs: [check-versions]
@@ -181,7 +181,7 @@ jobs:
181181

182182
terraform-plan:
183183
name: Plan changes
184-
runs-on: [self-hosted, ci]
184+
runs-on: codebuild-nhsd-nrlf-ci-build-project-${{ github.run_id }}-${{ github.run_attempt }}
185185
environment: ${{ inputs.environment }}
186186

187187
needs: [build-permissions, pull-deployed-lambdas]
@@ -256,7 +256,7 @@ jobs:
256256
257257
terraform-apply:
258258
name: Apply permissions
259-
runs-on: [self-hosted, ci]
259+
runs-on: codebuild-nhsd-nrlf-ci-build-project-${{ github.run_id }}-${{ github.run_attempt }}
260260
environment: ${{ inputs.environment }}
261261

262262
needs: terraform-plan

0 commit comments

Comments
 (0)