Browse Source

Add badge and new flow for auto deploys

Colin Powell 2 years ago
parent
commit
4cdad13263
2 changed files with 9 additions and 0 deletions
  1. 5 0
      .drone.yml
  2. 4 0
      README.md

+ 5 - 0
.drone.yml

@@ -10,12 +10,17 @@ steps:
   # Run tests against Python/Flask engine backend (with pytest)
   - name: build and push
     image: klakegg/hugo
+    environment:
+      sshkey:
+        from_secret: key
     commands:
       # Install dependencies
       - wget https://github.com/gohugoio/hugo/releases/download/v0.110.0/hugo_0.110.0_linux-amd64.tar.gz
       - tar zxvf hugo_0.110.0_linux-amd64.tar.gz
       # Start with a fresh database (which is already running as a service from Drone)
       - hugo
+      - ssh-add <(echo $sshkey)
+      - rsync -avz --delete public/ root@box.unbl.ink:/home/user-data/www/unbl.ink/
 volumes:
   - name: docker
     host:

+ 4 - 0
README.md

@@ -0,0 +1,4 @@
+Source for unbl.ink website
+===========================
+
+[![Build Status](https://ci.unbl.ink/api/badges/secstate/unbl.ink/status.svg)](https://ci.unbl.ink/secstate/unbl.ink)