From 039c4fd69277b38d20aba926e0497aae7f3a2bdb Mon Sep 17 00:00:00 2001 From: JuanfeSanahuja Date: Mon, 9 Sep 2024 12:04:41 +0200 Subject: [PATCH] Fix ssh to report server #TASK-6807 --- .github/workflows/test-xetabase-workflow.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test-xetabase-workflow.yml b/.github/workflows/test-xetabase-workflow.yml index eb441cfe..a2dde507 100644 --- a/.github/workflows/test-xetabase-workflow.yml +++ b/.github/workflows/test-xetabase-workflow.yml @@ -93,15 +93,20 @@ jobs: chmod +x ./kubectl echo "${{ secrets.AZURE_KUBE_CONFIG }}" > admin.conf ./kubectl -n cellbase-db port-forward services/cellbase-rs0-svc 27018:27017 --kubeconfig ./admin.conf & - - name: Install Azure AZCOPY - uses: kheiakiyama/install-azcopy-action@v1 - with: - version: 'v10' - name: DockerHub login uses: docker/login-action@v3 with: username: ${{ env.DOCKER_HUB_USER }} password: ${{ env.DOCKER_HUB_PASSWORD }} + - name: Install sshpass + run: sudo apt-get install sshpass + - name: Add SSH Host to known_hosts + run: | + mkdir -p ~/.ssh + ssh-keyscan -p ${{ env.SSH_PORT }} ${{ env.SSH_HOST }} >> ~/.ssh/known_hosts + env: + SSH_HOST: ${{ env.SSH_HOST }} + SSH_PORT: ${{ env.SSH_PORT }} - name: Run all OpenCB Junit tests, ie. java-common-libs, biodata, cellbase, opencga and opencga-enterprise run: | printenv