Skip to content

Commit

Permalink
Set SNS topic env var in build-and-run-model workflow container (#64)
Browse files Browse the repository at this point in the history
* Test jeancochrane/support-container-env-vars-in-batch-jobs branch of ccao-data/actions

* Test removing container-env-vars to confirm that the default works

* Add AWS_SNS_ARN_MODEL_STATUS env var to build-and-run-model container

* Since secrets can't be used in workflow inputs, try passing them as workflow secrets

* Set CONTAINER_ENV_VARS to AWS_SNS_ARN_MODEL_STATUS in build-and-run-model workflow

* Switch back to main branch ref in build-and-run-model.yaml
  • Loading branch information
jeancochrane authored Dec 1, 2023
1 parent c5dda8e commit 6da78cb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build-and-run-model.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,5 @@ jobs:
secrets:
AWS_IAM_ROLE_TO_ASSUME_ARN: ${{ secrets.AWS_IAM_ROLE_TO_ASSUME_ARN }}
AWS_ACCOUNT_ID: ${{ secrets.AWS_ACCOUNT_ID }}
CONTAINER_ENV_VARS: |
AWS_SNS_ARN_MODEL_STATUS=${{ secrets.AWS_SNS_ARN_MODEL_STATUS }}

0 comments on commit 6da78cb

Please sign in to comment.