-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
61 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: "Prepare environment for deploy" | ||
description: "Prepare environment for deploy" | ||
|
||
inputs: | ||
aws_region: | ||
description: "AWS Region" | ||
required: true | ||
aws_iam_role: | ||
description: "AWS IAM Role to assume for deployment" | ||
required: true | ||
aws_secret_arn: | ||
description: "AWS Secret ARN to fetch env vars from" | ||
required: true | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
# https://github.com/actions/checkout/releases/tag/v3.5.3 | ||
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 | ||
- name: Configure AWS Credentials | ||
# https://github.com/aws-actions/configure-aws-credentials/releases/tag/v4.0.2 | ||
uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 | ||
with: | ||
aws-region: ${{ inputs.aws_region }} | ||
role-to-assume: ${{ inputs.aws_iam_role }} | ||
- name: Step name | ||
uses: aws-actions/aws-secretsmanager-get-secrets@v2 | ||
with: | ||
secret-ids: | | ||
${{ inputs.aws_secret_arn }} | ||
parse-json-secrets: true | ||
- name: Check env | ||
run: | | ||
env | ||
# This step recovers the artifact that is generated in the `deploy.yml` workflow | ||
- name: Download node modules | ||
# https://github.com/actions/download-artifact/releases/tag/v3.0.2 | ||
uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a | ||
with: | ||
name: node_modules | ||
- name: Set up Python and Dependencies | ||
uses: ./.github/workflows/lib/setup-python | ||
with: | ||
python_version: 3.9 |