use raw ssh key secret
All checks were successful
Deploy to my-vpn / deploy (push) Successful in 14s
All checks were successful
Deploy to my-vpn / deploy (push) Successful in 14s
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -13,12 +13,12 @@ jobs:
|
||||
env:
|
||||
VPN_HOST: ${{ secrets.VPN_HOST }}
|
||||
VPN_USER: ${{ secrets.VPN_USER }}
|
||||
VPN_SSH_KEY_B64: ${{ secrets.TEST_KEY_B64 }}
|
||||
VPN_SSH_KEY: ${{ secrets.TEST_KEY }}
|
||||
run: |
|
||||
set -euo pipefail
|
||||
mkdir -p ~/.ssh
|
||||
chmod 700 ~/.ssh
|
||||
printf '%s' "$VPN_SSH_KEY_B64" | base64 -d > ~/.ssh/id_ci_runner
|
||||
printf '%s' "$VPN_SSH_KEY" > ~/.ssh/id_ci_runner
|
||||
chmod 600 ~/.ssh/id_ci_runner
|
||||
VPN_USER="$(printf '%s' "$VPN_USER" | tr -d '\r\n')"
|
||||
VPN_HOST="$(printf '%s' "$VPN_HOST" | tr -d '\r\n')"
|
||||
|
||||
Reference in New Issue
Block a user