Skip to content

Commit

Permalink
build: ssh
Browse files Browse the repository at this point in the history
  • Loading branch information
okradze committed Jan 24, 2024
1 parent 08cd152 commit 634bd92
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/tf_plan_server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,16 @@ jobs:
GITHUB_TOKEN: ${{ secrets.github_personal_access_token }}
TF_WORKSPACE: ${{ inputs.gh_environment }}
run: |
eval `ssh-agent -s`
ssh-add - <<< '${{ secrets.github_ssh_private_key }}'
terraform init
- name: Terraform Validate
id: validate
run: terraform validate
run: |
eval `ssh-agent -s`
ssh-add - <<< '${{ secrets.github_ssh_private_key }}'
terraform validate
- name: Terraform Plan
id: plan
Expand All @@ -125,8 +130,6 @@ jobs:
TF_VAR_github_personal_access_token: ${{ secrets.github_personal_access_token }}
TF_VAR_environment: ${{ inputs.gh_environment }}
TF_WORKSPACE: ${{ inputs.gh_environment }}
GIT_SSH_COMMAND: "ssh -i ~/.ssh/id_ed25519"

run: |
eval `ssh-agent -s`
ssh-add - <<< '${{ secrets.github_ssh_private_key }}'
Expand Down

0 comments on commit 634bd92

Please sign in to comment.