mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-07-12 13:29:04 +00:00
Merge pull request #5 from Hestia-Homes/main
Try creating DevAdmin and ProdAdmin profiles in actions
This commit is contained in:
commit
4eef425273
1 changed files with 17 additions and 0 deletions
17
.github/workflows/deploy_terraform.yml
vendored
17
.github/workflows/deploy_terraform.yml
vendored
|
|
@ -14,6 +14,23 @@ jobs:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Setup AWS credentials file
|
||||||
|
run: |
|
||||||
|
mkdir -p ~/.aws
|
||||||
|
echo "[DevAdmin]" > ~/.aws/credentials
|
||||||
|
echo "aws_access_key_id = ${{ secrets.DEV_AWS_ACCESS_KEY_ID }}" >> ~/.aws/credentials
|
||||||
|
echo "aws_secret_access_key = ${{ secrets.DEV_AWS_SECRET_ACCESS_KEY }}" >> ~/.aws/credentials
|
||||||
|
echo "[ProdAdmin]" >> ~/.aws/credentials
|
||||||
|
echo "aws_access_key_id = ${{ secrets.PROD_AWS_ACCESS_KEY_ID }}" >> ~/.aws/credentials
|
||||||
|
echo "aws_secret_access_key = ${{ secrets.PROD_AWS_SECRET_ACCESS_KEY }}" >> ~/.aws/credentials
|
||||||
|
|
||||||
|
- name: Setup AWS config file
|
||||||
|
run: |
|
||||||
|
echo "[profile DevAdmin]" > ~/.aws/config
|
||||||
|
echo "region = eu-west-2" >> ~/.aws/config
|
||||||
|
echo "[profile ProdAdmin]" >> ~/.aws/config
|
||||||
|
echo "region = eu-west-2" >> ~/.aws/config
|
||||||
|
|
||||||
- name: Setup Terraform
|
- name: Setup Terraform
|
||||||
uses: hashicorp/setup-terraform@v1
|
uses: hashicorp/setup-terraform@v1
|
||||||
with:
|
with:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue