Skip to content

Commit 0f4ca8c

Browse files
committed
CCM-11098: Using pr number for sandbox env creation
1 parent af2e7f4 commit 0f4ca8c

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

.github/workflows/stage-4-acceptance.yaml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -8,31 +8,31 @@ permissions:
88
contents: read
99

1010
jobs:
11-
generate-sandbox-name:
12-
name: Generate sandbox name
13-
runs-on: ubuntu-latest
14-
outputs:
15-
SANDBOX_NAME: ${{ steps.normalize_branch_name.outputs.normalized_branch_name }}
16-
timeout-minutes: 3
17-
steps:
18-
- name: "Checkout code"
19-
uses: actions/[email protected]
20-
- name: "Get normalized branch name"
21-
id: normalize_branch_name
22-
uses: ./.github/actions/normalize-branch-name
11+
# generate-sandbox-name:
12+
# name: Generate sandbox name
13+
# runs-on: ubuntu-latest
14+
# outputs:
15+
# SANDBOX_NAME: ${{ steps.normalize_branch_name.outputs.normalized_branch_name }}
16+
# timeout-minutes: 3
17+
# steps:
18+
# - name: "Checkout code"
19+
# uses: actions/[email protected]
20+
# - name: "Get normalized branch name"
21+
# id: normalize_branch_name
22+
# uses: ./.github/actions/normalize-branch-name
2323

2424

2525
sandbox-set-up:
2626
name: Step 1
27-
needs: generate-sandbox-name
27+
# needs: generate-sandbox-name
2828
uses: ./.github/workflows/dispatch_internal_repo_workflow.yaml
2929
secrets: inherit
3030
with:
3131
jobName: Sandbox set up
3232
infraRepoName: nhs-notify-web-template-management
3333
releaseVersion: ${{ github.head_ref || github.ref_name }}
3434
targetWorkflow: dispatch-deploy-dynamic-env.yaml
35-
targetEnvironment: ${{ needs.generate-sandbox-name.outputs.SANDBOX_NAME }}
35+
targetEnvironment: pr${{ github.event.number }}
3636
targetAccountGroup: nhs-notify-template-management-dev
3737
targetComponent: sandbox
3838
terraformAction: apply
@@ -41,7 +41,7 @@ jobs:
4141
name: Step 2
4242
needs:
4343
- sandbox-set-up
44-
- generate-sandbox-name
44+
# - generate-sandbox-name
4545

4646
# Calls out to the nhs-notify-internal repo.
4747
# The nhs-notify-internal repo will run the tests
@@ -53,15 +53,15 @@ jobs:
5353
infraRepoName: nhs-notify-web-template-management
5454
releaseVersion: ${{ github.head_ref || github.ref_name }}
5555
targetWorkflow: dispatch-contextual-tests-dynamic-env.yaml
56-
targetEnvironment: ${{ needs.generate-sandbox-name.outputs.SANDBOX_NAME }}
56+
targetEnvironment: pr${{ github.event.number }}
5757
targetAccountGroup: nhs-notify-template-management-dev
5858
targetComponent: sandbox
5959

6060
sandbox-tear-down:
6161
name: Step 3
6262
needs:
6363
- acceptance-tests
64-
- generate-sandbox-name
64+
# - generate-sandbox-name
6565
if: always()
6666

6767
uses: ./.github/workflows/dispatch_internal_repo_workflow.yaml
@@ -71,7 +71,7 @@ jobs:
7171
infraRepoName: nhs-notify-web-template-management
7272
releaseVersion: ${{ github.head_ref || github.ref_name }}
7373
targetWorkflow: dispatch-deploy-dynamic-env.yaml
74-
targetEnvironment: ${{ needs.generate-sandbox-name.outputs.SANDBOX_NAME }}
74+
targetEnvironment: pr${{ github.event.number }}
7575
targetAccountGroup: nhs-notify-template-management-dev
7676
targetComponent: sandbox
7777
terraformAction: destroy

0 commit comments

Comments
 (0)