fix CD part 6
This commit is contained in:
parent
3f3fc495d1
commit
ee462d5544
|
|
@ -30,10 +30,10 @@ jobs:
|
||||||
ls -lah
|
ls -lah
|
||||||
ls -lah ./ttmt-frontend.tar
|
ls -lah ./ttmt-frontend.tar
|
||||||
mkdir -p ~/.ssh
|
mkdir -p ~/.ssh
|
||||||
printf '%s' "$SSH_PRIVATE_KEY" > ~/.ssh/id_rsa
|
printf '%s' "$SSH_PRIVATE_KEY" | tr -d '\r' > ~/.ssh/id_rsa
|
||||||
chmod 600 ~/.ssh/id_rsa
|
chmod 600 ~/.ssh/id_rsa
|
||||||
ssh-keyscan -p "$SSH_PORT" "$SSH_HOST" >> ~/.ssh/known_hosts
|
SSH_PORT="${SSH_PORT:-22}"
|
||||||
scp -v -P "$SSH_PORT" ./ttmt-frontend.tar "$SSH_USER@$SSH_HOST:/tmp/ttmt-frontend.tar"
|
scp -v -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -P "$SSH_PORT" ./ttmt-frontend.tar "$SSH_USER@$SSH_HOST:/tmp/ttmt-frontend.tar"
|
||||||
|
|
||||||
- name: Deploy on target (docker compose)
|
- name: Deploy on target (docker compose)
|
||||||
uses: appleboy/ssh-action@v1.0.3
|
uses: appleboy/ssh-action@v1.0.3
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user