File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 :
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
@@ -59,10 +64,20 @@ jobs:
5964 - name : Install Post-CSS
6065 run : npm install postcss-cli
6166
67+ - name : Validate AWS OIDC role
68+ run : |
69+ if [ -z "$DEPLOY_ROLE_ARN" ] && [ -z "$AWS_OIDC_ROLE" ]; then
70+ printf '%s\n' "Either the deploy-role-arn input or AWS_OIDC_ROLE secret must be provided." >&2
71+ exit 1
72+ fi
73+ env :
74+ DEPLOY_ROLE_ARN : ${{ inputs.deploy-role-arn }}
75+ AWS_OIDC_ROLE : ${{ secrets.AWS_OIDC_ROLE }}
76+
6277 - name : AWS Github OIDC Login
63- uses : aws-actions/configure-aws-credentials@v4
78+ uses : aws-actions/configure-aws-credentials@v6
6479 with :
65- role-to-assume : ${{ secrets.AWS_OIDC_ROLE }}
80+ role-to-assume : ${{ inputs.deploy-role-arn || secrets.AWS_OIDC_ROLE }}
6681 aws-region : ${{ inputs.aws-region }}
6782
6883 # Builds arm-software-developer repo
Original file line number Diff line number Diff line change 1111 workflow_dispatch :
1212
1313jobs :
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
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 }}
Original file line number Diff line number Diff line change 1111 workflow_dispatch :
1212
1313jobs :
14+ # Deprecated: kept temporarily while the prod deployment is validated.
1415 build_and_deploy_production :
15- name : Build and Deploy Production
16+ name : Build and Deploy Production Deprecated
1617 uses : ./.github/workflows/deploy.yml
1718 permissions :
1819 id-token : write
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_prod :
33+ name : Build and Deploy Prod
34+ uses : ./.github/workflows/deploy.yml
35+ permissions :
36+ id-token : write
37+ contents : read
38+ with :
39+ target : prod
40+ aws-region : us-east-1
41+ deploy-role-arn : arn:aws:iam::084149021538:role/Proj-GHA-arm-learning-paths-prod
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 }}
Original file line number Diff line number Diff line change @@ -13,16 +13,28 @@ name = "internal-existing"
1313URL = " s3://armswdev.tk?region=us-east-1"
1414cloudFrontDistributionID = " E2VDQ2CYZATMO9"
1515
16+ # Deprecated: kept temporarily while the dev deployment is validated.
1617[[deployment .targets ]]
1718name = " internal"
1819URL = " s3://arm-learning-paths-internal?region=us-west-2"
1920cloudFrontDistributionID = " ENN4LK1IZUDIX"
2021
22+ [[deployment .targets ]]
23+ name = " dev"
24+ URL = " s3://arm-learning-paths-dev?region=us-east-1"
25+ cloudFrontDistributionID = " EAMKPMDBM18II"
26+
27+ # Deprecated: kept temporarily while the prod deployment is validated.
2128[[deployment .targets ]]
2229name = " production"
2330URL = " s3://arm-learning-paths?region=us-west-2"
2431cloudFrontDistributionID = " E2NEF61QWPFRIH"
2532
33+ [[deployment .targets ]]
34+ name = " prod"
35+ URL = " s3://arm-learning-paths-prod?region=us-east-1"
36+ cloudFrontDistributionID = " E2IA2AC83UE2VJ"
37+
2638[markup ]
2739 [markup .goldmark ]
2840 [markup .goldmark .renderer ]
@@ -102,4 +114,4 @@ math = true
102114 notAlternative = true
103115
104116[outputs ]
105- home = [" HTML" , " COVEO" ]
117+ home = [" HTML" , " COVEO" ]
You can’t perform that action at this time.
0 commit comments