fix CD part 6
This commit is contained in:
parent
3f3fc495d1
commit
ee462d5544
|
|
@ -30,10 +30,10 @@ jobs:
|
|||
ls -lah
|
||||
ls -lah ./ttmt-frontend.tar
|
||||
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
|
||||
ssh-keyscan -p "$SSH_PORT" "$SSH_HOST" >> ~/.ssh/known_hosts
|
||||
scp -v -P "$SSH_PORT" ./ttmt-frontend.tar "$SSH_USER@$SSH_HOST:/tmp/ttmt-frontend.tar"
|
||||
SSH_PORT="${SSH_PORT:-22}"
|
||||
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)
|
||||
uses: appleboy/ssh-action@v1.0.3
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user