fix(ci): avoid shadowing USER and HOST environment variables in deploy workflow
Some checks failed
Deploy Docmost Wiki / Deploy to cisystem (push) Failing after 16s
Some checks failed
Deploy Docmost Wiki / Deploy to cisystem (push) Failing after 16s
This commit is contained in:
parent
108a902105
commit
625c832060
1 changed files with 4 additions and 4 deletions
|
|
@ -21,8 +21,8 @@ jobs:
|
|||
- name: Deploy via SSH
|
||||
env:
|
||||
SSH_KEY: ${{ secrets.CISYSTEM_SSH_KEY }}
|
||||
HOST: ${{ secrets.CISYSTEM_HOST }}
|
||||
USER: ${{ secrets.CISYSTEM_USER }}
|
||||
REMOTE_HOST: ${{ secrets.CISYSTEM_HOST }}
|
||||
REMOTE_USER: ${{ secrets.CISYSTEM_USER }}
|
||||
run: |
|
||||
if command -v apk >/dev/null 2>&1; then
|
||||
apk add --no-cache openssh-client curl
|
||||
|
|
@ -34,8 +34,8 @@ jobs:
|
|||
echo "$SSH_KEY" > ~/.ssh/id_rsa
|
||||
chmod 600 ~/.ssh/id_rsa
|
||||
|
||||
TARGET_HOST="${HOST:-16.113.106.152}"
|
||||
TARGET_USER="${USER:-ubuntu}"
|
||||
TARGET_HOST="${REMOTE_HOST:-16.113.106.152}"
|
||||
TARGET_USER="${REMOTE_USER:-ubuntu}"
|
||||
|
||||
# Create target directories
|
||||
ssh -o StrictHostKeyChecking=no -i ~/.ssh/id_rsa $TARGET_USER@$TARGET_HOST "mkdir -p /home/ubuntu/docmost/patches"
|
||||
|
|
|
|||
Loading…
Reference in a new issue