diff --git a/.gitea/workflows/deploy-staging.yml b/.gitea/workflows/deploy-staging.yml index dc0498d..b8fb499 100644 --- a/.gitea/workflows/deploy-staging.yml +++ b/.gitea/workflows/deploy-staging.yml @@ -30,10 +30,10 @@ jobs: ls -lah ls -lah ./ttmt-frontend.tar mkdir -p ~/.ssh - printf '%s' "$SSH_PRIVATE_KEY" > ~/.ssh/id_rsa + printf '%s' "$SSH_PRIVATE_KEY" | tr -d '\r' > ~/.ssh/id_rsa chmod 600 ~/.ssh/id_rsa - ssh-keyscan -p "$SSH_PORT" "$SSH_HOST" >> ~/.ssh/known_hosts - scp -v -P "$SSH_PORT" ./ttmt-frontend.tar "$SSH_USER@$SSH_HOST:/tmp/ttmt-frontend.tar" + SSH_PORT="${SSH_PORT:-22}" + scp -v -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -P "$SSH_PORT" ./ttmt-frontend.tar "$SSH_USER@$SSH_HOST:/tmp/ttmt-frontend.tar" - name: Deploy on target (docker compose) uses: appleboy/ssh-action@v1.0.3