.gitlab-ci.yml 860 Bytes
Newer Older
René Benner's avatar
René Benner committed
1 2 3 4
image: google/cloud-sdk:206.0.0-alpine
# All available Hugo versions are listed here: https://gitlab.com/pages/hugo/container_registry
# image: registry.gitlab.com/pages/hugo:latest
test-pages:
René Benner's avatar
René Benner committed
5
  allow_failure: true
René Benner's avatar
René Benner committed
6 7
  image: registry.gitlab.com/pages/hugo:latest
  script:
René Benner's avatar
René Benner committed
8
  - rm LICENSE
René Benner's avatar
René Benner committed
9 10 11 12 13 14 15
  - mkdir content
  - mv * content
  - hugo new site handbook
  - mv content handbook/content
  - cd handbook/
  - git clone https://github.com/matcornic/hugo-theme-learn.git themes/learn
  - hugo 
René Benner's avatar
René Benner committed
16 17 18 19
  except:
  - master
pages:
  image: registry.gitlab.com/pages/hugo:latest
René Benner's avatar
René Benner committed
20
  allow_failure: true
René Benner's avatar
René Benner committed
21
  script:
René Benner's avatar
René Benner committed
22
  - rm LICENSE
René Benner's avatar
René Benner committed
23 24 25 26 27 28
  - mkdir content
  - mv * content
  - hugo new site handbook
  - mv content handbook/content
  - cd handbook/
  - git clone https://github.com/matcornic/hugo-theme-learn.git themes/learn
René Benner's avatar
René Benner committed
29
  - hugo
René Benner's avatar
René Benner committed
30 31 32 33 34
  artifacts:
    paths:
    - public
  only:
  - master