diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..3c3b054 --- /dev/null +++ b/.drone.yml @@ -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 + diff --git a/site.yaml b/site.yaml new file mode 100644 index 0000000..5895838 --- /dev/null +++ b/site.yaml @@ -0,0 +1,2 @@ +- domain: "manual-notifier.sfner.com" + on_404: "404.html"