.gitlab-ci.yml 646 Bytes
Newer Older
Mathias Jud's avatar
Mathias Jud committed
1 2 3 4 5 6 7
variables:
  GIT_SUBMODULE_STRATEGY: recursive

# Build & deploy the web site in the master branch
Deploy web site:
  script:
  - HUGO_DISABLELANGUAGES="ar" hugo
Mathias Jud's avatar
Mathias Jud committed
8
  - rsync -azhe "ssh -p 2223 -i /home/gitlab-runner/.ssh/id_ed25519 -o StrictHostKeyChecking=no" ./public/ admin@qaul.net:/home/admin
Mathias Jud's avatar
Mathias Jud committed
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
  artifacts:
    paths:
    - public
    expire_in: 1 week
  only:
  - master
  tags:
  - qaul-web-deploy


# Build web site for testing reasons in all 
# branches except the master branch.
Build web site:
  script:
  - HUGO_DISABLELANGUAGES="ar" hugo
  artifacts:
    paths:
    - public
    expire_in: 1 week
  except:
  - master
  tags:
  - hugo