From 1dc2f1d94f8f9f389fd9d82e29a6810d8cf56464 Mon Sep 17 00:00:00 2001 From: Lucas Golino Date: Sun, 28 Jan 2024 04:16:01 -0300 Subject: [PATCH] fix: workflow; chore: improve logging output; --- .github/workflows/build_at_release.yaml | 2 +- bin/socket | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build_at_release.yaml b/.github/workflows/build_at_release.yaml index f7b5bb6..6818149 100644 --- a/.github/workflows/build_at_release.yaml +++ b/.github/workflows/build_at_release.yaml @@ -22,7 +22,7 @@ jobs: with: registry: ${{ env.REGISTRY }} username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} + password: ${{ secrets.WK_TOKEN }} - name: Extract metadata (tags, labels) for Docker id: meta diff --git a/bin/socket b/bin/socket index deed63e..423d884 100644 --- a/bin/socket +++ b/bin/socket @@ -10,4 +10,6 @@ if [ $OVPN_ENABLE = true ]; then sleep 10 fi -ssh -v -oStrictHostKeyChecking=no -oUserKnownHostsFile=/dev/null -i /opt/socket/$SSH_KEYNAME.pem -NL 0.0.0.0:$SOCK_PORT:$RDOCKER_SOCK $SSH_USER@$SSH_HOST +ssh -v -oStrictHostKeyChecking=no -oUserKnownHostsFile=/dev/null -i /opt/socket/$SSH_KEYNAME.pem -NL 0.0.0.0:$SOCK_PORT:$RDOCKER_SOCK $SSH_USER@$SSH_HOST &> /opt/socket-bin/ssh.log & + +tail -f /opt/socket-bin/openvpn.log /opt/socket-bin/ssh.log