generated from vilor/hyde-template
My website.
http://www.vilor.one/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
533 B
31 lines
533 B
kind: pipeline |
|
type: docker |
|
name: production |
|
when: |
|
event: [ push ] |
|
branch: [ master ] |
|
|
|
trigger: |
|
branch: |
|
- master |
|
|
|
steps: |
|
- name: build-frontend |
|
image: node:14-alpine |
|
commands: |
|
- cd fontend |
|
- npm i |
|
- npm run build |
|
|
|
- name: deploy |
|
image: drillster/drone-rsync |
|
settings: |
|
hosts: |
|
from_secret: deploy_hosts |
|
user: |
|
from_secret: deploy_user |
|
key: |
|
from_secret: deploy_ssh_key |
|
target: |
|
from_secret: deploy_target |
|
source: frontend/dist/
|
|
|