Skip to content

Commit

Permalink
feat(stacks.maintenance-site): retain stack name, disable configs dec…
Browse files Browse the repository at this point in the history
…ryption

Signed-off-by: Braden Mars <bradenmars@bradenmars.me>
  • Loading branch information
BradenM committed Aug 21, 2023
1 parent 8ddfb04 commit e7b99db
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/deploy-maintenance-site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
NX_BRANCH: ${{github.event.number}}
NX_RUN_GROUP: ${{github.run_id}}
NX_CLOUD_ACCESS_TOKEN: ${{secrets.NX_CLOUD_ACCESS_TOKEN}}
CCU_CONFIGS_DECRYPT: "false"
MAINTENANCE_SITE_SOURCE: ${{github.workspace}}/.maintenance-site
steps:
- name: Checkout
Expand Down Expand Up @@ -282,7 +283,7 @@ jobs:
- id: Deploy
uses: aws-actions/aws-cloudformation-github-deploy@v1.2.0
with:
name: pipeline-maintenance-site
name: maintenance-site
template: https://cdk-hnb659fds-assets-${{secrets.AWS_ACCOUNT_ID_PIPELINE}}-us-east-1.s3.us-east-1.amazonaws.com/${{
needs.Assets-FileAsset1.outputs.asset-hash }}.json
no-fail-on-empty-changeset: "1"
Expand Down
9 changes: 8 additions & 1 deletion packages/stacks/maintenance-site/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ import { GitHubStage, type GitHubStageProps } from 'cdk-pipelines-github'
import type { Construct } from 'constructs'
import { MaintenanceSite } from './maintenance-site'

const { config, cwd } = await getConfig({ strict: true, useEnvOverrides: true })
const { config, cwd } = await getConfig({
strict: true,
useEnvOverrides: true,
decrypt: false,
})

const app = new App()

Expand All @@ -26,6 +30,8 @@ class MaintenanceStage extends GitHubStage {
},
{
env: config.cdkEnvironment,
description: 'Maintenance Site',
stackName: 'maintenance-site',
},
)
}
Expand All @@ -45,6 +51,7 @@ GithubCodePipeline.create({
path: '.maintenance-site',
})
.addSynthEnv({
CCU_CONFIGS_DECRYPT: 'false',
MAINTENANCE_SITE_SOURCE:
interpolateValue(ActionsContext.GITHUB, 'workspace') +
'/.maintenance-site',
Expand Down

0 comments on commit e7b99db

Please sign in to comment.