|
|
|
|
@ -3,18 +3,6 @@ type: docker |
|
|
|
|
name: build-and-deploy |
|
|
|
|
|
|
|
|
|
steps: |
|
|
|
|
- name: Build & Publish |
|
|
|
|
image: plugins/docker:18 |
|
|
|
|
settings: |
|
|
|
|
dockerfile: docker/Dockerfile |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: install_and_build |
|
|
|
|
image: node:18 |
|
|
|
|
commands: |
|
|
|
|
- npm install |
|
|
|
|
- npm run build |
|
|
|
|
|
|
|
|
|
- name: deploy |
|
|
|
|
image: appleboy/drone-scp |
|
|
|
|
settings: |
|
|
|
|
@ -24,7 +12,7 @@ steps: |
|
|
|
|
password: |
|
|
|
|
from_secret: password_deploy |
|
|
|
|
port: 22 |
|
|
|
|
target: /root/docker/nginx/www_data |
|
|
|
|
target: /root/docker/trash-api/ |
|
|
|
|
source: build |
|
|
|
|
|
|
|
|
|
- name: telegram notification |
|
|
|
|
|