2024-07-18 18:00:58 +00:00
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
|
|
steps:
|
2024-07-31 13:05:33 +00:00
|
|
|
build:
|
|
|
|
image: node:latest
|
|
|
|
commands:
|
|
|
|
- npm install
|
|
|
|
- npm run build
|
2024-07-18 18:00:58 +00:00
|
|
|
deploy:
|
|
|
|
image: appleboy/drone-scp
|
|
|
|
settings:
|
|
|
|
strip_components: 1
|
|
|
|
host:
|
|
|
|
from_secret: host
|
|
|
|
username:
|
|
|
|
from_secret: ssh_user
|
|
|
|
target:
|
|
|
|
from_secret: path
|
2024-07-31 13:05:33 +00:00
|
|
|
source: public/
|
2024-07-18 18:00:58 +00:00
|
|
|
key:
|
|
|
|
from_secret: ssh_key
|