kind: pipeline type: docker name: build-and-deploy steps: # 1. Install dependencies and build the project - name: install_and_build image: node:18 volumes: - name: node-build path: /build # Монтируем внешний путь в контейнер как /build commands: - npm install - npm run build - cp -r /build/* /node-build/ - name: telegram notification image: appleboy/drone-telegram settings: token: from_secret: telegram_token to: from_secret: telegram_to format: markdown when: status: - success - failure message: > {{#success build.status}} ✅ Build #{{build.number}} of `{{repo.name}}` succeeded. 📝 Commit by {{commit.author}} on `{{commit.branch}}`: ``` {{commit.message}} ``` 🌐 {{ build.link }} {{else}} ❌ Build #{{build.number}} of `{{repo.name}}` failed. 📝 Commit by {{commit.author}} on `{{commit.branch}}`: ``` {{commit.message}} ``` 🌐 {{ build.link }} {{/success}} volumes: - name: node-build host: path: /root/docker/gitea/drone/src