Skip to content

Commit 5da59c5

Browse files
committed
Moving rclone to packager image
1 parent 8353826 commit 5da59c5

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

.drone.yml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,6 @@ clone:
77
steps:
88
- name: prepare_package
99
image: joomlaprojects/docker-images:packager
10-
commands:
11-
- mkdir build
12-
- cp -r -v archived.html css/ images/ img/ js/ index.html results.html robots.txt 403.html 404.html .htaccess ./build
13-
14-
- name: deploy_documentation
15-
image: debian:stable-slim
1610
environment:
1711
ssh_password:
1812
from_secret: ssh_password
@@ -21,9 +15,11 @@ steps:
2115
ssh_host:
2216
from_secret: ssh_host
2317
commands:
24-
- apt update && apt install -y rclone openssh-client
18+
- mkdir build
19+
- cp -r -v archived.html css/ images/ img/ js/ index.html results.html robots.txt 403.html 404.html .htaccess ./build
2520
- rclone config create api sftp host $ssh_host user $ssh_user pass $ssh_password port 22 use_insecure_cipher true disable_hashcheck true
2621
- rclone copy ./build/ api:/home/api/public_html -v
22+
- /bin/notify
2723

2824
trigger:
2925
branch:
@@ -93,7 +89,7 @@ steps:
9389
fi
9490
9591
- name: deploy_documentation
96-
image: debian:stable-slim
92+
image: joomlaprojects/docker-images:packager
9793
environment:
9894
ssh_password:
9995
from_secret: ssh_password
@@ -102,7 +98,6 @@ steps:
10298
ssh_host:
10399
from_secret: ssh_host
104100
commands:
105-
- apt update && apt install -y rclone openssh-client
106101
- rclone config create api sftp host $ssh_host user $ssh_user pass $ssh_password port 22 use_insecure_cipher true disable_hashcheck true
107102
- |
108103
if [ "$JTYPE" = "framework" ]; then
@@ -124,6 +119,6 @@ trigger:
124119

125120
---
126121
kind: signature
127-
hmac: 11f8a5c1e97ebecf0c8c666e75df86e84b72e6d9886a4f5139df8cbc6aa52f2d
122+
hmac: f9e4e82552d87a7f0ab4d68fc078ccba4c3ffc2f0d4a7f4155224652dc9fceda
128123

129124
...

0 commit comments

Comments
 (0)