15 lines
371 B
YAML
15 lines
371 B
YAML
---
|
|
stages:
|
|
- deploy
|
|
Upload to webserver:
|
|
stage: deploy
|
|
only:
|
|
- master
|
|
script:
|
|
- apt-get update -qq && apt-get install -y -qq lftp
|
|
- ls -l
|
|
- |
|
|
lftp -c "set ftp:ssl-allow no; open -u $USERNAME,$PASSWORD $HOST; \
|
|
mirror -Rev ./ ./www --parallel=10 \
|
|
--exclude-glob .git* --exclude .git/"
|