Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,14 @@ on:
required: false
type: string
default: "us-west-2"
deploy-role-arn:
description: "AWS OIDC role ARN to assume"
required: false
type: string
default: ""
secrets:
AWS_OIDC_ROLE:
required: true
required: false
HUGO_LLM_API:
required: true
HUGO_RAG_API:
Expand All @@ -40,7 +45,7 @@ jobs:
contents: read
steps:
# Checks-out the repository under $GITHUB_WORKSPACE, so the job can access it
- uses: actions/checkout@v4
- uses: actions/checkout@v6
with:
submodules: true # Fetch Hugo Themes
fetch-depth: 0
Expand All @@ -60,9 +65,9 @@ jobs:
run: npm install postcss-cli

- name: AWS Github OIDC Login
uses: aws-actions/configure-aws-credentials@v4
uses: aws-actions/configure-aws-credentials@v6
with:
role-to-assume: ${{ secrets.AWS_OIDC_ROLE }}
role-to-assume: ${{ inputs.deploy-role-arn || secrets.AWS_OIDC_ROLE }}
aws-region: ${{ inputs.aws-region }}

# Builds arm-software-developer repo
Expand Down
19 changes: 19 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ on:
workflow_dispatch:

jobs:
# Deprecated: kept temporarily while the dev deployment is validated.
build_and_deploy_internal:
name: Build and Deploy Internal
uses: ./.github/workflows/deploy.yml
Expand All @@ -27,3 +28,21 @@ jobs:
HUGO_PHI_ONNX_LLM_API: ${{ secrets.HUGO_PHI_ONNX_LLM_API }}
HUGO_DEV_PROG_SIGNIUP_FORM_MUNCHKIN_ID: ${{ secrets.HUGO_DEV_PROG_SIGNIUP_FORM_MUNCHKIN_ID }}
HUGO_FORM_ID_FOR_PROGRAM_SIGNUP: ${{ secrets.HUGO_FORM_ID_FOR_PROGRAM_SIGNUP }}

build_and_deploy_dev:
name: Build and Deploy Dev
uses: ./.github/workflows/deploy.yml
permissions:
id-token: write
contents: read
with:
target: dev
aws-region: us-east-1
deploy-role-arn: arn:aws:iam::688080325088:role/Proj-GHA-arm-learning-paths-dev
secrets:
HUGO_LLM_API: ${{ secrets.HUGO_LLM_API }}
HUGO_RAG_API: ${{ secrets.HUGO_RAG_API }}
HUGO_AUDIO_API: ${{ secrets.HUGO_AUDIO_API }}
HUGO_PHI_ONNX_LLM_API: ${{ secrets.HUGO_PHI_ONNX_LLM_API }}
HUGO_DEV_PROG_SIGNIUP_FORM_MUNCHKIN_ID: ${{ secrets.HUGO_DEV_PROG_SIGNIUP_FORM_MUNCHKIN_ID }}
HUGO_FORM_ID_FOR_PROGRAM_SIGNUP: ${{ secrets.HUGO_FORM_ID_FOR_PROGRAM_SIGNUP }}
21 changes: 20 additions & 1 deletion .github/workflows/production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ on:
workflow_dispatch:

jobs:
# Deprecated: kept temporarily while the prod deployment is validated.
build_and_deploy_production:
name: Build and Deploy Production
name: Build and Deploy Production Deprecated
uses: ./.github/workflows/deploy.yml
permissions:
id-token: write
Expand All @@ -27,3 +28,21 @@ jobs:
HUGO_PHI_ONNX_LLM_API: ${{ secrets.HUGO_PHI_ONNX_LLM_API }}
HUGO_DEV_PROG_SIGNIUP_FORM_MUNCHKIN_ID: ${{ secrets.HUGO_DEV_PROG_SIGNIUP_FORM_MUNCHKIN_ID }}
HUGO_FORM_ID_FOR_PROGRAM_SIGNUP: ${{ secrets.HUGO_FORM_ID_FOR_PROGRAM_SIGNUP }}

build_and_deploy_prod:
name: Build and Deploy Prod
uses: ./.github/workflows/deploy.yml
permissions:
id-token: write
contents: read
with:
target: prod
aws-region: us-east-1
deploy-role-arn: arn:aws:iam::084149021538:role/Proj-GHA-arm-learning-paths-prod
secrets:
HUGO_LLM_API: ${{ secrets.HUGO_LLM_API }}
HUGO_RAG_API: ${{ secrets.HUGO_RAG_API }}
HUGO_AUDIO_API: ${{ secrets.HUGO_AUDIO_API }}
HUGO_PHI_ONNX_LLM_API: ${{ secrets.HUGO_PHI_ONNX_LLM_API }}
HUGO_DEV_PROG_SIGNIUP_FORM_MUNCHKIN_ID: ${{ secrets.HUGO_DEV_PROG_SIGNIUP_FORM_MUNCHKIN_ID }}
HUGO_FORM_ID_FOR_PROGRAM_SIGNUP: ${{ secrets.HUGO_FORM_ID_FOR_PROGRAM_SIGNUP }}
14 changes: 13 additions & 1 deletion config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,28 @@ name = "internal-existing"
URL = "s3://armswdev.tk?region=us-east-1"
cloudFrontDistributionID = "E2VDQ2CYZATMO9"

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

[[deployment.targets]]
name = "dev"
URL = "s3://arm-learning-paths-dev?region=us-east-1"
cloudFrontDistributionID = "EAMKPMDBM18II"

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

[[deployment.targets]]
name = "prod"
URL = "s3://arm-learning-paths-prod?region=us-east-1"
cloudFrontDistributionID = "E2IA2AC83UE2VJ"

[markup]
[markup.goldmark]
[markup.goldmark.renderer]
Expand Down Expand Up @@ -102,4 +114,4 @@ math = true
notAlternative = true

[outputs]
home = ["HTML", "COVEO"]
home = ["HTML", "COVEO"]
Loading