Update homepage and trigger deploy
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
23
.drone.yml
23
.drone.yml
@ -1,10 +1,25 @@
|
|||||||
# .drone.yml
|
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
name: default
|
name: deploy-to-dev
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
branch:
|
||||||
|
- develop
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: run
|
- name: build
|
||||||
image: node:18
|
image: node:18
|
||||||
commands:
|
commands:
|
||||||
- node index.js
|
- npm install
|
||||||
|
- npm run build
|
||||||
|
|
||||||
|
- name: deploy
|
||||||
|
image: appleboy/scp
|
||||||
|
settings:
|
||||||
|
host: 103.187.27.252
|
||||||
|
username: root
|
||||||
|
port: 2222
|
||||||
|
target: /var/www/dev
|
||||||
|
source: build/*
|
||||||
|
key:
|
||||||
|
from_secret: SSH_KEY
|
||||||
|
|||||||
Reference in New Issue
Block a user