https://gitlab.opengeosys.org/ogs/ogs.git
Raw File
Tip revision: 3d6fdd8f952a4af3ef0b8e0a6643b2c300388e01 authored by wenqing on 16 September 2020, 14:38:09 UTC
Merge branch 'Test_Wenqing_3BHEarray' into 'apply_the_known_solutions_to_init'
Tip revision: 3d6fdd8
web.yml
web url checker:
  stage: check
  allow_failure: true
  tags: [ docker ]
  extends:
    - .rules-manual
  dependencies: [meta_container]
  image: $WEB_IMAGE
  script:
    - cd web
    - >
      urlchecker check --retry-count 5 --file-types .pandoc,.md
      --white-listed-files releases/*
      --white-listed-urls https://jenkins.opengeosys.org/job/ufz/job/ogs-container-maker/job/master/build,http://yourproxy.example.com,https://apt.kitware.com/ubuntu/,https://github.com/YOUR-USERNAME/ogs,https://jenkins.opengeosys.org/github-webhook/,http://localhost:1313,https://github.com/ufz/ogs/pull/\$1,http://www.opengeosys.org/images/xsd/OpenGeoSysXXX.xsd,https://\`-protocol,https://gitlab.opengeosys.org/ogs/ogs/-/merge_requests/new,https://gitlab.opengeosys.org/ogs/ogs/-/jobs/artifacts/master/browse/_out/images?job=container,https://jquery.org/license/,https://ogsstorage.blob.core.windows.net/binaries/ogs6/\,https://gitlab.opengeosys.org/ogs/ogs/-/tags/new
      content

preview web site:
  stage: build
  tags: [ docker ]
  image: $WEB_IMAGE
  dependencies: [meta_container]
  script:
    # HACK to easier linking to the generated pages
    - echo '<meta http-equiv="REFRESH" content="0;URL=web/public/index.html">' >> WebPreview.html
    - cd web
    - yarn
    - hugo --environment staging
  rules:
    - if: $CI_MERGE_REQUEST_ID
      changes:
      - web/**/*
      - scripts/ci/jobs/web.yml
  artifacts:
    expose_as: 'Web Preview'
    paths:
      - WebPreview.html
      - web/public
    expire_in: 1 week
  cache:
    paths:
      - web/node_modules

deploy web site:
  stage: package
  image: $WEB_IMAGE
  dependencies: [meta_container]
  rules:
    - if: '$CI_COMMIT_BRANCH == "master"'
      changes:
        - web/**/*
        - scripts/ci/jobs/web.yml
    - if: '$CI_COMMIT_BRANCH == "master"'
      when: manual
      allow_failure: true
  script:
    - cd web
    - yarn
    - hugo
    - netlify deploy --prod --dir=public
    - node_modules/.bin/hugo-algolia --toml -s
  cache:
    paths:
      - web/node_modules
back to top