del gitea
ci/woodpecker/manual/woodpecker Pipeline was canceled

This commit is contained in:
@kirill.komarov
2026-06-17 12:28:15 +05:00
parent 4319edca0c
commit 62b1e63667
+5 -4
View File
@@ -20,14 +20,15 @@ steps:
- npm run build - npm run build
depends_on: [install] depends_on: [install]
deploy: deploy:
image: alpine:latest image: alpine:latest
environment:
DEPLOY_KEY:
from_secret: deploy_key
commands: commands:
- apk add --no-cache openssh rsync - apk add --no-cache openssh rsync
- mkdir -p /ssh - mkdir -p /ssh
- echo "$$*** > /ssh/deploy_key - echo "$DEPLOY_KEY" > /ssh/deploy_key
- chmod 600 /ssh/deploy_key - chmod 600 /ssh/deploy_key
- ssh-keyscan -H 192.168.1.88 >> /etc/ssh/ssh_known_hosts 2>/dev/null
- rsync -e "ssh -i /ssh/deploy_key -o StrictHostKeyChecking=no" -avz --delete client/dist/ root@192.168.1.88:/var/www/ - rsync -e "ssh -i /ssh/deploy_key -o StrictHostKeyChecking=no" -avz --delete client/dist/ root@192.168.1.88:/var/www/
secrets: [deploy_key]
depends_on: [lint, build] depends_on: [lint, build]