Skip to content

Commit

Permalink
Add UTILITY_ACCOUNT_ID env param
Browse files Browse the repository at this point in the history
  • Loading branch information
MikkoKauhanen committed Dec 12, 2024
1 parent 87477a2 commit 53ff016
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/deploy_dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,12 @@ jobs:
- name: Run CDK Diff
if: ${{ github.event.inputs.proceedDeploy == 'false' }}
run: ./deploy-scripts/04-deploy-dev.sh diff
env:
UTILITY_ACCOUNT_ID: ${{ secrets.UTILITY_ACCOUNT_ID }}

- name: Run CDK Deploy
if: ${{ github.event.inputs.proceedDeploy == 'true' }}
run: ./deploy-scripts/04-deploy-dev.sh deploy
env:
UTILITY_ACCOUNT_ID: ${{ secrets.UTILITY_ACCOUNT_ID }}

2 changes: 1 addition & 1 deletion aoe-infra/infra/cdk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ source "$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/../../scripts/common-f
main() {
use_correct_node_version
npm_ci_if_package_lock_has_changed
npx cdk --context environment="$ENV" --context UTILITY_ACCOUNT_ID=637423428507 "$@"
npx cdk --context environment="$ENV" --context UTILITY_ACCOUNT_ID="$UTILITY_ACCOUNT_ID" "$@"
}

main "$@"
4 changes: 0 additions & 4 deletions deploy-scripts/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ function main {
use_correct_node_version
end_gh_actions_group



if [[ "$ACTION" == "diff" ]]; then
start_gh_actions_group "Diff $ENV"
diff
Expand All @@ -23,8 +21,6 @@ function main {
deploy
end_gh_actions_group
fi


}

function deploy {
Expand Down

0 comments on commit 53ff016

Please sign in to comment.