conventionschedule-pwa-simpler/.drone.yml

42 lines
951 B
YAML

kind: pipeline
type: ssh
name: default
server:
host:
from_secret: host
user:
from_secret: username
ssh_key:
from_secret: ssh_key
clone:
depth: 50
steps:
- name: submodules
commands:
- git submodule update --init --recursive --remote
- name: build
depends_on:
- submodules
commands:
- echo "Nothing to do..."
- name: deploy
depends_on:
- build
commands:
- sudo mkdir -p /var/lib/static-site-server-rs/sites/site_bff_test_pwa_simple/files
- sudo cp -R public/. /var/lib/static-site-server-rs/sites/site_bff_test_pwa_simple/files/.
- sudo install -m 644 -T site.yaml /var/lib/static-site-server-rs/sites/site_bff_test_pwa_simple/site.yaml
- sudo chown http:http -R /var/lib/static-site-server-rs/sites/site_bff_test_pwa_simple
- name: reload
depends_on:
- deploy
commands:
- sudo touch /var/lib/static-site-server-rs/routes.yaml