Skip to content

Commit 4a3d2cd

Browse files
committed
Build preview for pull request
1 parent f819a89 commit 4a3d2cd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.drone.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,16 @@ steps:
3030
- chmod 600 ~/.ssh/id_rsa
3131
- ssh-add
3232
- rclone config create server sftp host $developer_host user $sftp_user port 22
33-
- rclone -v sync build server:public_html
33+
- [ -z "$${DRONE_PULL_REQUEST}" ] && export TARGET=public_html || export TARGET=wildcard.manual.joomlacode.org/sites/pr-$${DRONE_PULL_REQUEST}
34+
- rclone --dry-run -v sync build server:$TARGET
3435
when:
3536
branch:
3637
- main
3738
status:
3839
- success
3940
event:
4041
- push
42+
- pull_request
4143

4244
---
4345
kind: signature

0 commit comments

Comments
 (0)