Compare commits
4 Commits
| Author | SHA1 | Date |
|---|---|---|
|
|
a60d25dd00 | 1 year ago |
|
|
eae655f583 | 1 year ago |
|
|
71e992dcf7 | 1 year ago |
|
|
13ccfd3b4e | 1 year ago |
@ -1,51 +1,12 @@ |
|||||||
kind: pipeline |
kind: pipeline |
||||||
type: docker |
name: default |
||||||
name: build-and-deploy |
|
||||||
|
|
||||||
steps: |
steps: |
||||||
- name: install_and_build |
- name: test_node123 |
||||||
image: node:18 |
image: node |
||||||
commands: |
commands: |
||||||
- npm install |
- npm install |
||||||
- npm run build |
- npm run build |
||||||
|
|
||||||
- name: deploy |
|
||||||
image: appleboy/drone-scp |
|
||||||
settings: |
|
||||||
host: 192.168.0.129 |
|
||||||
username: |
|
||||||
from_secret: username_deploy |
|
||||||
password: |
|
||||||
from_secret: password_deploy |
|
||||||
port: 22 |
|
||||||
target: /root/docker/nginx/www_data |
|
||||||
source: build |
|
||||||
|
|
||||||
- name: telegram notification |
|
||||||
image: appleboy/drone-telegram |
|
||||||
settings: |
|
||||||
token: |
|
||||||
from_secret: telegram_token |
|
||||||
to: |
|
||||||
from_secret: telegram_to |
|
||||||
format: markdown |
|
||||||
when: |
when: |
||||||
status: |
branch: |
||||||
- success |
- dev |
||||||
- 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}} |
|
||||||
Loading…
Reference in new issue