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
     recursive: false
4
     recursive: false
5
 
5
 
6
 pipeline:
6
 pipeline:
7
+
7
   pull_build:
8
   pull_build:
8
     image: sots:latest
9
     image: sots:latest
9
     secrets: [ssh_private_key, ssh_known_hosts, ssh_host]
10
     secrets: [ssh_private_key, ssh_known_hosts, ssh_host]
27
       - chmod 644 ./base/bpre0.gba
28
       - chmod 644 ./base/bpre0.gba
28
       
29
       
29
       - make -j4 all
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 ]