Skip to content

Commit

Permalink
build: tf
Browse files Browse the repository at this point in the history
  • Loading branch information
okradze committed Jan 24, 2024
1 parent e7108ca commit f60dfe5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/tf_apply_server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,12 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.github_personal_access_token }}
TF_WORKSPACE: ${{ inputs.gh_environment }}
run: |
git config --global url."https://oauth2:${{ secrets.github_personal_access_token }}@github.com".insteadOf "[email protected]"
terraform init
GIT_SSH_COMMAND:
"echo '${{ secrets.github_personal_access_token }}' > ed25519
&& ssh-keyscan github.com > known_hosts
&& chmod 600 ed25519 known_hosts
&& ssh -i ./ed25519 -o UserKnownHostsFile=./known_hosts"
run: terraform init

# - name: Terraform Workspace Creation
# run: terraform workspace new ${{ inputs.task_container_name }}-${{ inputs.gh_environment }} || true
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/tf_plan_server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,12 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.github_personal_access_token }}
TF_WORKSPACE: ${{ inputs.gh_environment }}
run: |
git config --global url."https://oauth2:${{ secrets.github_personal_access_token }}@github.com".insteadOf "[email protected]"
terraform init
GIT_SSH_COMMAND:
"echo '${{ secrets.github_personal_access_token }}' > ed25519
&& ssh-keyscan github.com > known_hosts
&& chmod 600 ed25519 known_hosts
&& ssh -i ./ed25519 -o UserKnownHostsFile=./known_hosts"
run: terraform init

- name: Terraform Validate
id: validate
Expand Down

0 comments on commit f60dfe5

Please sign in to comment.