Skip to content

debug ssh agent

debug ssh agent #120

Workflow file for this run

name: QA
on:
workflow_dispatch:
push:
branches:
- nenad/800-run-qa-from-git
jobs:
run-malachite-do:
runs-on: ubuntu-latest
env:
TF_VAR_do_token: "${{ secrets.DO_TOKEN }}"
TF_VAR_ssh_keys: '["${{ secrets.DO_SSH_FINGERPRINT }}"]'
TF_VAR_nyc1: 1
TF_VAR_nyc3: 0
TF_VAR_fra1: 0
steps:
- name: Checkout code
uses: actions/checkout@v4
- uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.DO_SSH_KEY }}
- name: Install parallel-ssh and create symlink
run: |
sudo apt-get update && sudo apt-get install -y pssh
sudo ln /usr/bin/parallel-ssh /usr/bin/pssh
pssh --version
- name: Set up Terraform
uses: hashicorp/setup-terraform@v2
with:
terraform_version: 1.10.5
- name: Terraform Init
working-directory: qa/terraform
run: terraform init
- name: Terraform Apply (Provision Nodes)
working-directory: qa/terraform
run: terraform apply -auto-approve
- name: Get Control Node Public IP
working-directory: qa/terraform
run: |
echo "Fetching control node public IP..."
echo "CANDC_IP=$(terraform output -json ssh-cc | sed -n 2p | cut -d '@' -f2)" >> $GITHUB_ENV
echo "$CANDC_IP"
- name: Debug SSH connection
run: |
echo "Testing SSH connection to CANDC node..."
ssh -v -o StrictHostKeyChecking=no root@$CANDC_IP "echo Connected successfully"
- name: Debug SSH key scan
run: |
echo "Running ssh-keyscan on $CANDC_IP..."
ssh-keyscan $CANDC_IP
- name: Setup commands
working-directory: qa/terraform
run: |
sleep 10
set -x
source commands.sh
deploy_cc
- name: Terraform Destroy (Cleanup Nodes)
if: always()
working-directory: qa/terraform
run: terraform destroy -auto-approve