Skip to content

Commit

Permalink
test tfvars and env
Browse files Browse the repository at this point in the history
  • Loading branch information
KevJimenez committed Feb 2, 2024
1 parent faacec3 commit 7b05e3a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ jobs:
# Note: It is recommended to set up a required "strict" status check in your repository for "Terraform Cloud". See the documentation on "strict" required status checks for more information: https://help.github.com/en/github/administering-a-repository/types-of-required-status-checks
- name: Terraform Apply
run: terraform apply -auto-approve -input=false
env:
CF_EMAIL: ${{ secrets.CF_EMAIL }}
CF_API: ${{ secrets.CF_API }}
ZONECF_ID: ${{ secrets.ZONECF_ID }}
PUB_KEY: ${{ secrets.PUB_KEY }}

- name: Delay for 7s
run: sleep 7s
Expand All @@ -29,8 +34,5 @@ jobs:
env:
DOCKER_USER: ${{ secrets.DOCKER_USER }}
DOCKER_KEY: ${{ secrets.DOCKER_KEY }}
CF_EMAIL: ${{ secrets.CF_EMAIL }}
CF_API: ${{ secrets.CF_API }}
ZONECF_ID: ${{ secrets.ZONECF_ID }}
PUB_KEY: ${{ secrets.PUB_KEY }}

...
8 changes: 4 additions & 4 deletions terraform.tfvars
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Secret Keys

cf_api = "{{ lookup('env', 'CF_API') }}"
cf_email = "{{ lookup('env', 'CF_EMAIL') }}"
zonecf_id = "{{ lookup('env', 'ZONECF_ID') }}"
pub_key = "{{ lookup('env', 'PUB_KEY') }}"
cf_api = {{ lookup('env', 'CF_API') }}
cf_email = {{ lookup('env', 'CF_EMAIL') }}
zonecf_id = {{ lookup('env', 'ZONECF_ID') }}
pub_key = {{ lookup('env', 'PUB_KEY') }}

0 comments on commit 7b05e3a

Please sign in to comment.