Skip to content

Commit

Permalink
update deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
franklinfoko committed Apr 2, 2024
1 parent 8a887a1 commit 24b17fe
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- main



env:
Expand All @@ -29,17 +30,20 @@ jobs:
echo "credentials \"$TF_API_URL\" {" >> ~/.terraformrc
echo " token = \"${{ secrets.TF_API_TOKEN }}\"" >> ~/.terraformrc
echo "}" >> ~/.terraformrc
working-directory: ${{ env.CONFIG_DIRECTORY }}

- name: Initialize Terraform
run: |
ls
cd labs-17
terraform init
ls -a
working-directory: ${{ env.CONFIG_DIRECTORY }}


- name: Terraform apply
run: |
ls
cd labs-17
terraform apply
working-directory: ${{ env.CONFIG_DIRECTORY }}

0 comments on commit 24b17fe

Please sign in to comment.