Browse Source

ci: changed pages backend

master
Adler Neves 10 months ago
parent
commit
92838ba79e
2 changed files with 43 additions and 0 deletions
  1. +41
    -0
      .drone.yml
  2. +2
    -0
      site.yaml

+ 41
- 0
.drone.yml View File

@ -0,0 +1,41 @@
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:
- hugo
- name: deploy
depends_on:
- build
commands:
- sudo mkdir -p /var/lib/static-site-server-rs/sites/site_manual_notifier/files
- sudo cp -R public/. /var/lib/static-site-server-rs/sites/site_manual_notifier/files/.
- sudo install -m 644 -T site.yaml /var/lib/static-site-server-rs/sites/site_manual_notifier/site.yaml
- sudo chown http:http -R /var/lib/static-site-server-rs/sites/site_manual_notifier
- name: reload
depends_on:
- deploy
commands:
- sudo touch /var/lib/static-site-server-rs/routes.yaml

+ 2
- 0
site.yaml View File

@ -0,0 +1,2 @@
- domain: "manual-notifier.sfner.com"
on_404: "404.html"

Loading…
Cancel
Save