From 49198ec73c07986af1c217561c7d498dfadb2c8e Mon Sep 17 00:00:00 2001 From: Jarkko Toivanen Date: Tue, 28 Jan 2025 19:21:42 +0200 Subject: [PATCH] Don't test the connection (SSH is not quaranteed to work in prod env) --- .forgejo/workflows/duuni.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.forgejo/workflows/duuni.yaml b/.forgejo/workflows/duuni.yaml index 94b0ada..d78f1ab 100644 --- a/.forgejo/workflows/duuni.yaml +++ b/.forgejo/workflows/duuni.yaml @@ -32,11 +32,11 @@ jobs: echo -e "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_foobar echo -e "${{ vars.SSH_PUBLIC_KEY }}" > ~/.ssh/id_foobar.pub chmod 600 ~/.ssh/* - - name: Test SSH connection - run: | - echo -e 'Testing SSH by connecting to ${{ vars.SSH_USER }}@${{ vars.SSH_HOST }}...' - ssh -v -i ~/.ssh/id_foobar -o StrictHostKeyChecking=no ${{ vars.SSH_USER }}@${{ vars.SSH_HOST }} exit 0 - echo -e 'Established SSH connection!' +# - name: Test SSH connection +# run: | +# echo -e 'Testing SSH by connecting to ${{ vars.SSH_USER }}@${{ vars.SSH_HOST }}...' +# ssh -v -i ~/.ssh/id_foobar -o StrictHostKeyChecking=no ${{ vars.SSH_USER }}@${{ vars.SSH_HOST }} exit 0 +# echo -e 'Established SSH connection!' - uses: actions/download-artifact@v3 - name: Send built pages to server run: rsync -e "ssh -o StrictHostKeyChecking=no -i ~/.ssh/id_foobar" -rclthv --exclude .git --delete-after site/ ${{ vars.SSH_USER }}@${{ vars.SSH_HOST }}:${{ vars.SSH_PATH }}