.gitlab-ci.yml 383 Bytes
Newer Older
Geoff Pado's avatar
Geoff Pado committed
1 2 3 4 5 6 7 8 9
stages:
  - build
  - deploy
variables:
  LC_ALL: "en_US.UTF-8"
  LANG: "en_US.UTF-8"
build:
  stage: build
  script:
10
    - "hugo"
Geoff Pado's avatar
Geoff Pado committed
11 12 13
deploy:
  dependencies: [build]
  stage: deploy
Geoff Pado's avatar
Geoff Pado committed
14
  script: "hugo; rsync -avz -e \"ssh -i ~/.ssh/site_deploy -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null\" --progress public/ deploy@cocoatype.com:/srv/www/highlighter"
Geoff Pado's avatar
Geoff Pado committed
15
  only:
Geoff Pado's avatar
Geoff Pado committed
16
    - deploy