This action allows doing in order
- ssh if defined
- scp if defined
- ssh if defined
see the action.yml file for more detail imformation.
Required ssh remote host.
NOT Required ssh remote port. Default 22
Required ssh remote user.
NOT Required ssh remote pass.
NOT Required ssh remote key as string.
NOT Required connection timeout to remote host. Default 30s
NOT Required execute pre-commands before scp.
NOT Required scp from local to remote.
Syntax local_path => remote_path e.g. /opt/test/* => /home/github/test
NOT Required execute pre-commands after scp.
see the deploy.yml file for more detail imformation.
- name: ssh scp ssh pipelines
uses: cross-the-world/ssh-scp-ssh-pipelines@latest
env:
WELCOME: "ssh scp ssh pipelines"
LASTSSH: "Doing something after copying"
with:
host: ${{ secrets.DC_HOST }}
user: ${{ secrets.DC_USER }}
pass: ${{ secrets.DC_PASS }}
port: ${{ secrets.DC_PORT }}
connect_timeout: 10s
first_ssh: |
rm -rf /home/github/test
ls -la \necho $WELCOME
mkdir -p /home/github/test/test1 &&
mkdir -p /home/github/test/test2 &&
scp: |
'./test/*' => /home/github/test/
./test/test1* => /home/github/test/test1/
./test/test*.csv => "/home/github/test/test2/"
last_ssh: |
echo $LASTSSH &&
(mkdir test1/test || true)
|| ls -la
- name: scp ssh pipelines
uses: cross-the-world/ssh-scp-ssh-pipelines@latest
env:
LASTSSH: "Doing something after copying"
with:
host: ${{ secrets.DC_HOST }}
user: ${{ secrets.DC_USER }}
pass: ${{ secrets.DC_PASS }}
scp: |
./test/test1* => /home/github/test/test1/
./test/test*.csv => "/home/github/test/test2/"
last_ssh: |
echo $LASTSSH
ls -la
- name: scp pipelines
uses: cross-the-world/ssh-scp-ssh-pipelines@latest
with:
host: ${{ secrets.DC_HOST }}
user: ${{ secrets.DC_USER }}
pass: ${{ secrets.DC_PASS }}
scp: |
'./test/*' => /home/github/test/