Skip to content

Commit

Permalink
actions
Browse files Browse the repository at this point in the history
  • Loading branch information
james-otten committed Sep 6, 2024
1 parent 4890b8c commit 92ebd12
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/deploy_environment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,12 @@ jobs:

- name: Terraform validate
id: validate
run: terraform validate
run: |
echo "${{ secrets.SSH_PRIVATE_KEY }}" > vpn
echo "${{ secrets.SSH_PUBLIC_KEY }}" > vpn.pub
chmod 600 vpn
chmod 600 vpn.pub
terraform validate
working-directory: ./terraform/

- name: Setup WireGuard
Expand All @@ -83,10 +88,6 @@ jobs:

- name: Terraform Apply
run: |
echo "${{ secrets.SSH_PRIVATE_KEY }}" > vpn
echo "${{ secrets.SSH_PUBLIC_KEY }}" > vpn.pub
chmod 600 vpn
chmod 600 vpn.pub
terraform apply -auto-approve -input=false -var-file=${{ inputs.environment }}.tfvars
working-directory: ./terraform/

Expand Down

0 comments on commit 92ebd12

Please sign in to comment.