From 04cbfe0c7a775823b58c906ee099ffb003307a34 Mon Sep 17 00:00:00 2001
From: Adam Caprez <acaprez2@unl.edu>
Date: Fri, 26 Oct 2018 23:53:40 +0000
Subject: [PATCH] Add CI deploy job.

---
 .gitlab-ci.yml | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
 create mode 100644 .gitlab-ci.yml

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 00000000..139cf4c2
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,18 @@
+variables:
+  DEPLOY_ROOT: "/var/www/html/hcc-docs"
+
+stages:
+  - deploy
+
+deploy:
+  stage: deploy
+  environment:
+    name:  hcc_docs_prod
+    url:  http://10.71.110.145/hcc-docs
+  only:
+    - master
+  tags:
+    - hcc-docs-test
+  script:
+    - hugo -v
+    - rsync -avz --delete public/ $DEPLOY_ROOT
-- 
GitLab