Skip to content

Commit

Permalink
Merge pull request #5 from viralparmarme/feature/docker
Browse files Browse the repository at this point in the history
Load secrets and save to app.env
  • Loading branch information
viralparmarme authored Sep 27, 2023
2 parents f0ee959 + 52511f6 commit c5fb42a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ jobs:
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-1

- name: Load secrets and save to app.env
run: aws secretsmanager get-secret-value --secret-id simple_bank --query SecretString --output text | jq 'to_entries|map("\(.key)=\(.value)")|.[]' -r > app.env

- name: Login to Amazon ECR
id: login-ecr
uses: aws-actions/amazon-ecr-login@v1
Expand Down

0 comments on commit c5fb42a

Please sign in to comment.