fix: replace scp with cat+ssh to avoid busybox scp uid issue
Some checks failed
CI/CD Pipeline / build-and-deploy (push) Failing after 18s
Some checks failed
CI/CD Pipeline / build-and-deploy (push) Failing after 18s
This commit is contained in:
parent
6708431971
commit
77b46ec9ad
1 changed files with 1 additions and 1 deletions
|
|
@ -41,7 +41,7 @@ jobs:
|
||||||
run: docker push 192.168.8.174:3000/vrubel/t2s-telegram-bot:latest
|
run: docker push 192.168.8.174:3000/vrubel/t2s-telegram-bot:latest
|
||||||
|
|
||||||
- name: Copy docker-compose to prod host
|
- name: Copy docker-compose to prod host
|
||||||
run: scp -i /data/.ssh/id_ed25519 -o StrictHostKeyChecking=no docker-compose.prod.yml vrubel@192.168.8.171:~/services/t2sTelegramBot/docker-compose.yml
|
run: cat docker-compose.prod.yml | ssh -i /data/.ssh/id_ed25519 -o StrictHostKeyChecking=no vrubel@192.168.8.171 "cat > ~/services/t2sTelegramBot/docker-compose.yml"
|
||||||
|
|
||||||
- name: Deploy on prod host
|
- name: Deploy on prod host
|
||||||
run: ssh -i /data/.ssh/id_ed25519 -o StrictHostKeyChecking=no vrubel@192.168.8.171 "cd ~/services/t2sTelegramBot && docker compose pull && docker compose up -d --remove-orphans"
|
run: ssh -i /data/.ssh/id_ed25519 -o StrictHostKeyChecking=no vrubel@192.168.8.171 "cd ~/services/t2sTelegramBot && docker compose pull && docker compose up -d --remove-orphans"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue