# GitLab Hugo Script Failure

**URL:** <https://discourse.gohugo.io/t/gitlab-hugo-script-failure/5406>\
**Category:** support\
**Created:** [February 10, 2017, 6:30am UTC](https://discourse.gohugo.io/t/gitlab-hugo-script-failure/5406 "2017-02-10T06:30:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![JeffStroudGTB](https://avatars.discourse-cdn.com/v4/letter/j/e274bd/32.png) [@JeffStroudGTB](https://discourse.gohugo.io/u/JeffStroudGTB)\
**Post date:** [February 10, 2017, 6:30am UTC](https://discourse.gohugo.io/t/gitlab-hugo-script-failure/5406/1 "2017-02-10T06:30:57Z")

</div>

It doesn’t fail on my local machine but I look at the docker jacket log for the gitlab version and it seems to fail.  
It builds but there are errors which I assume that the script sees and says it fails and doesn’t deploy.

I am using the latest 18.1, I assume that is the issue. Is there a way to update it on GitLab or see the script to make my own?

---

<div class="post-metadata">

**Author:** ![bep](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/bep/32/3332_2.png) [@bep](https://discourse.gohugo.io/u/bep)\
**Post date:** [February 10, 2017, 2:17pm UTC](https://discourse.gohugo.io/t/gitlab-hugo-script-failure/5406/2 "2017-02-10T14:17:29Z")

</div>

1. This seems to be a GitLab issue that you should ask them about.
2. You’re not giving much information here, so anyone with a solution to your problem would have to be a psychic.

---

<div class="post-metadata">

**Author:** ![Rob\_Arnold](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/rob_arnold/32/1923_2.png) [@Rob\_Arnold](https://discourse.gohugo.io/u/Rob_Arnold)\
**Post date:** [February 11, 2017, 8:52pm UTC](https://discourse.gohugo.io/t/gitlab-hugo-script-failure/5406/3 "2017-02-11T20:52:52Z")

</div>

More info would have been helpful, but taking a wild guess here…

Check out [https://gitlab.com/pages/hugo/merge\_requests/11](https://gitlab.com/pages/hugo/merge_requests/11)  
Supposedly using the basic alpine image and adding Hugo is a lot smaller (faster?) than using the publysher image also, for what that’s worth.

I did it that way, and used the appropriate variables for submodule updates, etc. in my .gitlab-ci.yml as follows (you’d obviously want to change command lines as appropriate):

```auto
image: alpine:latest

variables:
  GIT_SUBMODULE_STRATEGY: recursive
  GIT_DEPTH: "3"
  GIT_SSL_NO_VERIFY: "true"

before_script:
  - apk update && apk add openssl
  - wget https://github.com/spf13/hugo/releases/download/v0.18.1/hugo_0.18.1_Linux-64bit.tar.gz
  - echo "e8ba723c508e87912970f132534c64dc hugo_0.18.1_Linux-64bit.tar.gz" | md5sum -c
  - tar xf hugo_0.18.1_Linux-64bit.tar.gz && cp ./hugo_0.18.1_linux_amd64/hugo_0.18.1_linux_amd64 /usr/bin
  - mv /usr/bin/hugo_0.18.1_linux_amd64 /usr/bin/hugo
  - hugo version

pages:
    script:
      - hugo version
      - hugo --verbose --buildDrafts --baseURL="/"
    artifacts:
      paths:
      - public
    only:
    - master

```
