Skip to content

Commit b8431de

Browse files
authored
Merge pull request #3331 from ArmDeveloperEcosystem/main
prod update
2 parents 50305aa + 4add43e commit b8431de

18 files changed

Lines changed: 1035 additions & 317 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 19 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
@@ -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

.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 }}

.github/workflows/production.yml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@ on:
1111
workflow_dispatch:
1212

1313
jobs:
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
@@ -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_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 }}

.wordlist.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6200,4 +6200,8 @@ deepspeed
62006200
dimensionality
62016201
dmlc
62026202
palletsprojects
6203-
xgboost
6203+
xgboost
6204+
Antigravity
6205+
Moby
6206+
antigravity
6207+
callout

config.toml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,28 @@ 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+
27+
# Deprecated: kept temporarily while the prod deployment is validated.
2128
[[deployment.targets]]
2229
name = "production"
2330
URL = "s3://arm-learning-paths?region=us-west-2"
2431
cloudFrontDistributionID = "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"]

0 commit comments

Comments
 (0)