SBird1337 6 years ago
parent
commit
7656d857ca
1 changed files with 16 additions and 0 deletions
  1. 16
    0
      .drone.yml

+ 16
- 0
.drone.yml View File

@@ -4,6 +4,7 @@ clone:
4 4
     recursive: false
5 5
 
6 6
 pipeline:
7
+
7 8
   pull_build:
8 9
     image: sots:latest
9 10
     secrets: [ssh_private_key, ssh_known_hosts, ssh_host]
@@ -27,3 +28,18 @@ pipeline:
27 28
       - chmod 644 ./base/bpre0.gba
28 29
       
29 30
       - make -j4 all
31
+
32
+  build_story:
33
+    image: xelatex:latest
34
+    commands:
35
+      - cd sots-private/story && make
36
+      - mv build/story.pdf build/master.pdf
37
+
38
+  deploy_story:
39
+    image: appleboy/drone-scp
40
+    host: gitlab.karathan.at
41
+    port: 22
42
+    strip_components: 3
43
+    target: /var/www/sots/story/
44
+    source: sots-private/story/build/master.pdf
45
+    secrets: [ ssh_password, ssh_username ]