From 81f9779af1f280c2dbb11fbd7bc268090166395b Mon Sep 17 00:00:00 2001
From: "Gervaise H. Henry" <gervaise.henry@utsouthwestern.edu>
Date: Tue, 7 Jan 2020 23:29:41 -0600
Subject: [PATCH] Set baseurl for dev CI builf

---
 .gitlab-ci.yml | 18 +++++++++++++++---
 config.toml    |  2 +-
 2 files changed, 16 insertions(+), 4 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 280d137..d8b2f9e 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -9,7 +9,19 @@ stages:
   - build_stage
   - deploy_stage
 
-build:
+build.dev:
+  stage: build_stage
+  script:
+  - singularity run 'docker://monachus/hugo' hugo --baseURL http://strandlab.dev.s3-website.us-east-2.amazonaws.com/
+  artifacts:
+    paths:
+    - public/
+    expire_in: 1 week
+  cache:
+    paths:
+    - public/
+
+build.live:
   stage: build_stage
   script:
   - singularity run 'docker://monachus/hugo' hugo
@@ -24,7 +36,7 @@ build:
 deploy.dev:
   stage: deploy_stage
   script:
-  - singularity run 'docker://monachus/hugo' hugo deploy aws-dev --maxDeletes -1
+  - singularity run 'docker://monachus/hugo' hugo deploy --target aws-dev --maxDeletes -1
   dependencies:
   - build
   only:
@@ -33,7 +45,7 @@ deploy.dev:
 deploy.live:
   stage: deploy_stage
   script:
-  - singularity run 'docker://monachus/hugo' hugo deploy aws --maxDeletes -1
+  - singularity run 'docker://monachus/hugo' hugo deploy --target aws --maxDeletes -1
   dependencies:
   - build
   only:
diff --git a/config.toml b/config.toml
index 3aa094f..9c9575b 100644
--- a/config.toml
+++ b/config.toml
@@ -19,7 +19,7 @@ paginate = 10
   department = "Department of Urology"
   dsite = "https://www.utsouthwestern.edu/education/medical-school/departments/urology/"
   description = "Investigating lower urinary tract biology"
-  # googleAnalytics = "UA-120971283-2"
+  googleAnalytics = "UA-120971283-2"
   # CSS name for highlight.js
   highlightjs = "androidstudio"
   highlightjs_extra_languages = ["yaml"]
-- 
GitLab