Skip to content
Snippets Groups Projects
Commit 3a4994c1 authored by Adam Caprez's avatar Adam Caprez
Browse files

Update ci

parent ee712897
Branches
No related tags found
No related merge requests found
variables:
BASE_URL: "http://10.71.110.145/hcc-docs"
DEPLOY_ROOT: "/var/www/html/hcc-docs"
HUGO_TARBALL: "https://github.com/gohugoio/hugo/releases/download/v0.49.2/hugo_0.49.2_Linux-64bit.tar.gz"
GIT_SUBMODULE_STRATEGY: recursive
stages:
- test
- deploy
test:
stage: test
image: unlhcc/docker-glibc
except:
- master
tags:
- docker
before_script:
- curl -L -o - ${HUGO_TARBALL} | tar -zxv -C /usr/local/bin
script:
- hugo -v
deploy:
stage: deploy
environment:
......@@ -15,5 +30,5 @@ deploy:
tags:
- docs-test
script:
- hugo -v
- hugo -b ${BASE_URL} -v
- rsync -avz --delete public/ $DEPLOY_ROOT
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment