-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathwercker.yml
37 lines (37 loc) · 1.19 KB
/
wercker.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
box: debian
build:
steps:
- arjen/hugo-build:
version: "0.74.3"
deploy:
steps:
- install-packages:
packages: git
- leipert/git-push:
gh-oauth: $GIT_TOKEN
basedir: public
repo: $REPO_TO_DEPLOY
clean_removed_files: true
# - install-packages:
# packages: lftp
# - script:
# name: mirror over lftp
# code: |
# echo $DEPLOY_FTP_SERVER
# mkdir -p $HOME/.lftp
# echo "set ssl:verify-certificate no" > $HOME/.lftp/rc
# USER=$DEPLOY_FTP_USER
# PASS=$DEPLOY_FTP_PASS
# HOST=$DEPLOY_FTP_SERVER
# lftp -f "open $HOST
# user $USER $PASS
# pwd
# set net:timeout 5
# set net:max-retries 3
# set net:reconnect-interval-max 60
# set ftp:passive-mode off
# set ftp:ssl-allow off
# mirror --continue --reverse --delete --verbose=3 public /blog
# quit
# "
# lftp -u $USER,$PASS -e "debug;set ftp:passive-mode off;set ftp:ssl-allow off;set net:timeout 5;set net:max-retries 2;set net:reconnect-interval-max 30;ls;mirror --continue --reverse --delete --verbose=3 public /blog;quit" $HOST