diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 61f4bd6..eba5bf9 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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