|
|
|
|
@ -3,16 +3,11 @@ 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 |
|
|
|
|
|