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

Merge branch 'update-ci' into 'master'

Update ci

See merge request !5
parents ee712897 3a4994c1
Branches
No related tags found
1 merge request!5Update ci
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