File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -53,12 +53,15 @@ jobs:
5353 mkdir -p ${{ env.REMOTE_DIR }} # -p гарантирует создание вложенных путей
5454 chmod 755 ${{ env.REMOTE_DIR }} # Выставляем корректные права
5555
56- - name : Copy files to server
57- run : |
58- scp -o StrictHostKeyChecking=no \
59- -i ${{ secrets.SSH_PRIVATE_KEY }} \
60- deploy-docker.yml ansible.cfg \
61- deployer@${{ secrets.SERVER_DNS }}:${{ env.REMOTE_DIR }}
56+ - name : copy file to server
57+ 58+ with :
59+ host : ${{ secrets.SERVER_DNS }}
60+ username : deployer
61+ key : ${{ secrets.SSH_PRIVATE_KEY }}
62+ source : " deploy-docker.yml,ansible.cfg"
63+ target : ${{ env.REMOTE_DIR }}
64+ command_timeout : 2m
6265
6366 - name : executing remote ssh commands using key
6467 uses : appleboy/ssh-action@v1
You can’t perform that action at this time.
0 commit comments