You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
564 B
YAML
46 lines
564 B
YAML
kind: pipeline
|
|
name: default
|
|
|
|
steps:
|
|
- name: deploy
|
|
image: node:latest
|
|
volumes:
|
|
- name: host-orario-dist
|
|
path: /drone/src/dist
|
|
environment:
|
|
BASE_URL:
|
|
from_secret: base_url
|
|
commands:
|
|
- pwd
|
|
- npm install
|
|
- npm run build
|
|
|
|
volumes:
|
|
- name: host-orario-dist
|
|
host:
|
|
path: /var/www/orario
|
|
|
|
trigger:
|
|
branch:
|
|
- main
|
|
event:
|
|
- push
|
|
|
|
---
|
|
kind: pipeline
|
|
type: exec
|
|
name: caddy-permissions
|
|
|
|
depends_on:
|
|
- default
|
|
|
|
steps:
|
|
- name: chown
|
|
commands:
|
|
- chown -R caddy:caddy /var/www/orario
|
|
|
|
trigger:
|
|
branch:
|
|
- main
|
|
event:
|
|
- push |