-
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
1 changed file
with
8 additions
and
20 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,35 +18,23 @@ jobs: | |
- name: Check out repo | ||
uses: actions/checkout@v3 | ||
|
||
# - uses: mcblair/[email protected] | ||
# with: | ||
# region: us-east-2 | ||
# role-arn: arn:aws:iam::975050371175:role/github-sa-role | ||
# profile-name: default | ||
|
||
- name: Configure AWS Credentials Action for GitHub Actions | ||
uses: aws-actions/configure-aws-credentials@v1 | ||
- name: Configure AWS credentials | ||
uses: aws-actions/[email protected] | ||
with: | ||
aws-region: us-east-2 | ||
role-to-assume: arn:aws:iam::975050371175:role/github-sa-role | ||
role-session-name: githubsa | ||
|
||
# - name: Setup Profile | ||
# run: | | ||
# aws configure set region ${{ env.AWS_REGION }} --profile githubsa | ||
# aws configure set aws_access_key_id ${{ env.AWS_ACCESS_KEY_ID }} --profile githubsa | ||
# aws configure set aws_secret_access_key ${{ env.AWS_SECRET_ACCESS_KEY }} --profile githubsa | ||
# aws configure set aws_session_token ${{ env.AWS_SESSION_TOKEN }} --profile githubsa | ||
- name: Get secrets | ||
uses: aws-actions/aws-secretsmanager-get-secrets@v1 | ||
with: | ||
secret-ids: | | ||
ENV_TEST, core/dev/mobile/.env.development.test | ||
- name: Retrieve envs from AWS Secrets Manager 1 | ||
working-directory: packages/core-mobile/scripts/github | ||
run: | | ||
# sudo cat ~/.aws/config | ||
# sudo echo output = json >> ~/.aws/config | ||
# sudo cat ~/.aws/config | ||
# sudo cat ~/.aws/credentials | ||
sudo aws secretsmanager list-secrets | ||
# sudo aws secretsmanager get-secret-value --secret-id core/dev/mobile/.env.development.test | grep "SecretString" | ||
# echo $ENV_TEST | grep "SecretString" | ||
# - name: Retrieve envs from AWS Secrets Manager 2 | ||
# working-directory: packages/core-mobile/scripts/github | ||
# run: | | ||
|