pages.yml 448 Bytes
Newer Older
1
pages:
2
  image: alpine
3
  stage: publish
4
  tags: ['osdu-small']
5
6
7
  artifacts:
    paths:
      - public
8
  rules:
9
    - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
10
  script:
11
    - mkdir -p public
12
13
14
    - echo "<html><head><title>${CI_PROJECT_NAME}</title></head><body>" > public/index.html
    - find public -type f -not -name index.html | sed 's|public/\(.*\)|<a href="\1">\1</a>|' >> public/index.html
    - echo "</body></html>" >> public/index.html