Skip to content

Commit

Permalink
Update deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
86LAK authored May 1, 2024
1 parent e3c3b7d commit 7c0f564
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,10 @@ jobs:

- name: Set AWS Credentials as Environment Variables and Save to File
run: |
echo "$AWS_CREDENTIALS" | tr " " "\n" > credentials.txt
export $(echo "$AWS_CREDENTIALS" | tr " " "\n")
echo "$AWS_CREDENTIALS" > credentials.txt
export AWS_ACCESS_KEY_ID=$(awk 'NR==1' credentials.txt)
export AWS_SECRET_ACCESS_KEY=$(awk 'NR==2' credentials.txt)
export AWS_REGION=$(awk 'NR==3' credentials.txt)
- name: Deploy to AWS
env:
Expand All @@ -33,4 +35,3 @@ jobs:
run: |
terraform init
terraform apply -auto-approve
rm credentials.txt

0 comments on commit 7c0f564

Please sign in to comment.