Browse Source

fix drone meta again

Karathan 6 years ago
parent
commit
f0538337fc
1 changed files with 7 additions and 19 deletions
  1. 7
    19
      .drone.yml

+ 7
- 19
.drone.yml View File

1
-pipeline:  
1
+pipeline:
2
+  modify_staging:
3
+    image: debian:stretch
4
+    commands:
5
+      - mv content/_meta-staging.mds content/_meta.md
6
+      - mv config/config-staging.yml config/config.yml
7
+
2
   deploy_staging:
8
   deploy_staging:
3
     image: appleboy/drone-scp
9
     image: appleboy/drone-scp
4
     host: gitlab.karathan.at
10
     host: gitlab.karathan.at
6
     target: "/var/www/blog-staging"
12
     target: "/var/www/blog-staging"
7
     source: "*"
13
     source: "*"
8
     secrets: [ ssh_password, ssh_username ]
14
     secrets: [ ssh_password, ssh_username ]
9
-    branches: [ staging ]
10
-  
11
-  deploy_staging_config:
12
-    image: appleboy/drone-scp
13
-    host: gitlab.karathan.at
14
-    port: 22
15
-    target: "/var/www/blog-staging/config/config.yml"
16
-    source: "config/config-staging.yml"
17
-    secrets: [ ssh_password, ssh_username ]
18
-    branches: [ staging ]
19
-
20
-  deploy_staging_meta:
21
-    image: appleboy/drone-scp
22
-    host: gitlab.karathan.at
23
-    port: 22
24
-    target: "/var/www/blog-staging/content/_meta.md"
25
-    source: "content/_meta-staging.md"
26
-    secrets: [ ssh_password, ssh_username ]
27
     branches: [ staging ]
15
     branches: [ staging ]