Skip to content

Commit 43f05af

Browse files
committed
add prod
1 parent b0dfdf4 commit 43f05af

2 files changed

Lines changed: 26 additions & 1 deletion

File tree

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

config.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,17 @@ name = "dev"
2424
URL = "s3://arm-learning-paths-dev?region=us-east-1"
2525
cloudFrontDistributionID = "EAMKPMDBM18II"
2626

27+
# Deprecated: kept temporarily while the prod deployment is validated.
2728
[[deployment.targets]]
2829
name = "production"
2930
URL = "s3://arm-learning-paths?region=us-west-2"
3031
cloudFrontDistributionID = "E2NEF61QWPFRIH"
3132

33+
[[deployment.targets]]
34+
name = "prod"
35+
URL = "s3://arm-learning-paths-prod?region=us-east-1"
36+
cloudFrontDistributionID = "E2IA2AC83UE2VJ"
37+
3238
[markup]
3339
[markup.goldmark]
3440
[markup.goldmark.renderer]

0 commit comments

Comments
 (0)