cake_frontend/.drone.yml

35 lines
550 B
YAML
Raw Normal View History

2024-08-22 17:19:06 +00:00
kind: pipeline
type: docker
name: stage-deploy
trigger:
event:
2024-08-22 17:20:02 +00:00
- push
2024-08-22 17:19:06 +00:00
steps:
- name: build
2024-08-22 17:22:43 +00:00
image: node:20.9
2024-08-22 17:19:06 +00:00
commands:
- node -v
- npm -v
- yarn --version
- yarn install
- yarn build
- name: scp
image: appleboy/drone-scp
settings:
host:
from_secret: server_ip
username:
from_secret: ssh_user
key:
from_secret: ssh_key
port:
from_secret: ssh_port
target:
- deploys/cake_frontend
source:
- dist
rm: true