Skip to content

Commit

Permalink
build: ssh key
Browse files Browse the repository at this point in the history
  • Loading branch information
okradze committed Jan 24, 2024
1 parent 5e0823f commit 08cd152
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/tf_plan_server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,6 @@ 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
Expand All @@ -129,7 +127,10 @@ jobs:
TF_WORKSPACE: ${{ inputs.gh_environment }}
GIT_SSH_COMMAND: "ssh -i ~/.ssh/id_ed25519"

run: terraform plan
run: |
eval `ssh-agent -s`
ssh-add - <<< '${{ secrets.github_ssh_private_key }}'
terraform plan
continue-on-error: true

- name: Terraform Plan Status
Expand Down

0 comments on commit 08cd152

Please sign in to comment.