Commit 9583816d authored by Cédric OLIVIER's avatar Cédric OLIVIER
Browse files

Merge branch 'feat/use-s3-for-review' into 'master'

Restore S3 for review

See merge request to-be-continuous/doc!36
parents 5c07642f 8d313daf
Loading
Loading
Loading
Loading
+13 −3
Original line number Diff line number Diff line
@@ -5,17 +5,27 @@ include:
    file: '/templates/gitlab-ci-mkdocs.yml'
  # S3 template
  - project: 'to-be-continuous/s3'
    ref: '3.0.0'
    ref: '4.0.0'
    file: '/templates/gitlab-ci-s3.yml'

variables:
  MKD_SITE_DIR: "public"

  # deploy: landing page (static/), mkdocs build (public/), Angular build (kicker/dist/) and aggregated kicker (kicker-aggregated/)
  S3_DEPLOY_FILES: "static/ public/ kicker/dist/ kicker-aggregated/"
  S3_REVIEW_DISABLED: "true"
  S3_DEPLOY_FILES: "static/ public/ kicker-aggregated.json"
  S3_STAGING_DISABLED: "true"
  S3_PROD_DISABLED: "true"
  S3_BASE_BUCKET_NAME: "tbc-doc"
  # use same bucket for all review envs
  S3_REVIEW_BUCKET_NAME: "tbc-doc-review"
  # segregate review envs with prefixes
  S3_REVIEW_PREFIX: "$CI_ENVIRONMENT_SLUG"

  # using Flexible Engine S3-compatible service
  S3_ENDPOINT_HOST: "oss.eu-west-0.prod-cloud-ocb.orange-business.com"
  S3_REGION: "eu-west-0"
  S3_WEBSITE_ENDPOINT: "https://%(bucket)s.oss-website.%(location)s.prod-cloud-ocb.orange-business.com"


stages:
  - build