Skip to content

Commit b0dfdf4

Browse files
committed
[Platform Migration] Add dev deployment target
1 parent e252992 commit b0dfdf4

3 files changed

Lines changed: 35 additions & 5 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,14 @@ on:
1212
required: false
1313
type: string
1414
default: "us-west-2"
15+
deploy-role-arn:
16+
description: "AWS OIDC role ARN to assume"
17+
required: false
18+
type: string
19+
default: ""
1520
secrets:
1621
AWS_OIDC_ROLE:
17-
required: true
22+
required: false
1823
HUGO_LLM_API:
1924
required: true
2025
HUGO_RAG_API:
@@ -40,7 +45,7 @@ jobs:
4045
contents: read
4146
steps:
4247
# Checks-out the repository under $GITHUB_WORKSPACE, so the job can access it
43-
- uses: actions/checkout@v4
48+
- uses: actions/checkout@v6
4449
with:
4550
submodules: true # Fetch Hugo Themes
4651
fetch-depth: 0
@@ -60,9 +65,9 @@ jobs:
6065
run: npm install postcss-cli
6166

6267
- name: AWS Github OIDC Login
63-
uses: aws-actions/configure-aws-credentials@v4
68+
uses: aws-actions/configure-aws-credentials@v6
6469
with:
65-
role-to-assume: ${{ secrets.AWS_OIDC_ROLE }}
70+
role-to-assume: ${{ inputs.deploy-role-arn || secrets.AWS_OIDC_ROLE }}
6671
aws-region: ${{ inputs.aws-region }}
6772

6873
# Builds arm-software-developer repo

.github/workflows/main.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ on:
1111
workflow_dispatch:
1212

1313
jobs:
14+
# Deprecated: kept temporarily while the dev deployment is validated.
1415
build_and_deploy_internal:
1516
name: Build and Deploy Internal
1617
uses: ./.github/workflows/deploy.yml
@@ -27,3 +28,21 @@ jobs:
2728
HUGO_PHI_ONNX_LLM_API: ${{ secrets.HUGO_PHI_ONNX_LLM_API }}
2829
HUGO_DEV_PROG_SIGNIUP_FORM_MUNCHKIN_ID: ${{ secrets.HUGO_DEV_PROG_SIGNIUP_FORM_MUNCHKIN_ID }}
2930
HUGO_FORM_ID_FOR_PROGRAM_SIGNUP: ${{ secrets.HUGO_FORM_ID_FOR_PROGRAM_SIGNUP }}
31+
32+
build_and_deploy_dev:
33+
name: Build and Deploy Dev
34+
uses: ./.github/workflows/deploy.yml
35+
permissions:
36+
id-token: write
37+
contents: read
38+
with:
39+
target: dev
40+
aws-region: us-east-1
41+
deploy-role-arn: arn:aws:iam::688080325088:role/Proj-GHA-arm-learning-paths-dev
42+
secrets:
43+
HUGO_LLM_API: ${{ secrets.HUGO_LLM_API }}
44+
HUGO_RAG_API: ${{ secrets.HUGO_RAG_API }}
45+
HUGO_AUDIO_API: ${{ secrets.HUGO_AUDIO_API }}
46+
HUGO_PHI_ONNX_LLM_API: ${{ secrets.HUGO_PHI_ONNX_LLM_API }}
47+
HUGO_DEV_PROG_SIGNIUP_FORM_MUNCHKIN_ID: ${{ secrets.HUGO_DEV_PROG_SIGNIUP_FORM_MUNCHKIN_ID }}
48+
HUGO_FORM_ID_FOR_PROGRAM_SIGNUP: ${{ secrets.HUGO_FORM_ID_FOR_PROGRAM_SIGNUP }}

config.toml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,17 @@ name = "internal-existing"
1313
URL = "s3://armswdev.tk?region=us-east-1"
1414
cloudFrontDistributionID = "E2VDQ2CYZATMO9"
1515

16+
# Deprecated: kept temporarily while the dev deployment is validated.
1617
[[deployment.targets]]
1718
name = "internal"
1819
URL = "s3://arm-learning-paths-internal?region=us-west-2"
1920
cloudFrontDistributionID = "ENN4LK1IZUDIX"
2021

22+
[[deployment.targets]]
23+
name = "dev"
24+
URL = "s3://arm-learning-paths-dev?region=us-east-1"
25+
cloudFrontDistributionID = "EAMKPMDBM18II"
26+
2127
[[deployment.targets]]
2228
name = "production"
2329
URL = "s3://arm-learning-paths?region=us-west-2"
@@ -102,4 +108,4 @@ math = true
102108
notAlternative = true
103109

104110
[outputs]
105-
home = ["HTML", "COVEO"]
111+
home = ["HTML", "COVEO"]

0 commit comments

Comments
 (0)