|
@@ -1,4 +1,10 @@
|
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
|
8
|
deploy_staging:
|
3
|
9
|
image: appleboy/drone-scp
|
4
|
10
|
host: gitlab.karathan.at
|
|
@@ -6,22 +12,4 @@ pipeline:
|
6
|
12
|
target: "/var/www/blog-staging"
|
7
|
13
|
source: "*"
|
8
|
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
|
15
|
branches: [ staging ]
|