Completely forget about SSH_PORT
Signed-off-by: mctaylors <cantsendmails@mctaylors.ru>
This commit is contained in:
parent
e1c0ee065a
commit
a23dc80a37
1 changed files with 6 additions and 3 deletions
|
@ -66,18 +66,20 @@ jobs:
|
|||
|
||||
- name: Stop currently running instance
|
||||
run: |
|
||||
ssh $SSH_USER@$SSH_HOST $STOP_COMMAND
|
||||
ssh -p $SSH_PORT $SSH_USER@$SSH_HOST $STOP_COMMAND
|
||||
shell: bash
|
||||
env:
|
||||
SSH_PORT: ${{secrets.SSH_PORT}}
|
||||
SSH_USER: ${{secrets.SSH_USER}}
|
||||
SSH_HOST: ${{secrets.SSH_HOST}}
|
||||
STOP_COMMAND: ${{vars.STOP_COMMAND}}
|
||||
|
||||
- name: Upload artifact
|
||||
run: |
|
||||
scp -r $UPLOAD_FROM $SSH_USER@$SSH_HOST:$UPLOAD_TO
|
||||
scp -r -P $SSH_PORT $UPLOAD_FROM $SSH_USER@$SSH_HOST:$UPLOAD_TO
|
||||
shell: bash
|
||||
env:
|
||||
SSH_PORT: ${{secrets.SSH_PORT}}
|
||||
SSH_USER: ${{secrets.SSH_USER}}
|
||||
SSH_HOST: ${{secrets.SSH_HOST}}
|
||||
UPLOAD_FROM: ${{vars.UPLOAD_FROM}}
|
||||
|
@ -85,9 +87,10 @@ jobs:
|
|||
|
||||
- name: Start new instance
|
||||
run: |
|
||||
ssh $SSH_USER@$SSH_HOST $START_COMMAND
|
||||
ssh -p $SSH_PORT $SSH_USER@$SSH_HOST $START_COMMAND
|
||||
shell: bash
|
||||
env:
|
||||
SSH_PORT: ${{secrets.SSH_PORT}}
|
||||
SSH_USER: ${{secrets.SSH_USER}}
|
||||
SSH_HOST: ${{secrets.SSH_HOST}}
|
||||
START_COMMAND: ${{vars.START_COMMAND}}
|
||||
|
|
Loading…
Reference in a new issue