site-autoconfig/.drone.yml

39 lines
648 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:
- for i in $(cat domains.txt); do ./generate.sh $i; done
- name: deploy
depends_on:
- build
commands:
- for i in $(cat domains.txt); do ./deploy.sh $i; done
- name: reload
depends_on:
- deploy
commands:
- sudo touch /var/lib/static-site-server-rs/routes.yaml