.gitlab-ci.yml 428 Bytes
Newer Older
phil's avatar
phil committed
1
image: 'clojure:boot'
phil's avatar
phil committed
2 3

variables:
phil's avatar
phil committed
4
  BOOT_AS_ROOT: 'yes'
phil's avatar
phil committed
5
  BOOT_LOCAL_REPO: '.m2'
phil's avatar
phil committed
6 7 8 9

cache:
  paths:
    - .m2
Achilleas Pipinellis's avatar
Achilleas Pipinellis committed
10

11 12
# as the doc says "names are arbitrary"
malamanteau:
Achilleas Pipinellis's avatar
Achilleas Pipinellis committed
13
  stage: deploy
Kamil Trzcinski's avatar
Kamil Trzcinski committed
14
  script:
phil's avatar
phil committed
15
    - apt-get update
phil's avatar
phil committed
16
    - apt-get install lftp rsync time -y
phil's avatar
phil committed
17
    - time boot prod
18 19
    - du --max-depth 1 -h ./target/public/
    - time lftp -e "mirror -R ./target/public/ .; exit" -u $FTP_USER,$FTP_PASSWORD $FTP_HOST
phil's avatar
phil committed
20 21
  only:
    - master