Skip to content

Make OSS component list available online

Balasankar 'Balu' C requested to merge 3486-upload-license-information into master

Closes #3486 (closed) Depends on gitlab-build-images!108 (merged)

Workflow

In the release pipeline

  1. Check if Ubuntu 18.04. Don't do anything if it isn't.
  2. After the regular operations, pull the S3 bucket to a local folder
  3. Copy the license file to appropriate location (for eg: gitalb-ce/11.0/11.0.1+ce.0.license)
  4. Generate the html page (for the current type) based on all the files inside the bucket.
  5. Push back everything to the bucket

In the scheduled pipeline

  1. Pull in the S3 bucket to pulic folder.
  2. Copy all webpages and related files (CSS stylesheet) to public folder
  3. Deploy to GL Pages

Requirements

  1. A small base image with aws s3 - gitlab-build-images!108 (merged)
  2. An S3 bucket for storing licenses
  3. 3 environment variables in both .com project and dev.gitlab.org project
    1. LICENSES_S3_BUCKET
    2. AWS_ACCESS_KEY_ID - This is already in dev.gitlab.org project.
    3. AWS_SECRET_ACCESS_KEY - This is already in dev.gitlab.org project.

PS: If we don't want our usual S3 account to be shared with .com pipeline, we need a separate account and two additional variables in dev.gitlab.org pipeline.

Result

  1. Two webpages - http://gitlab-org.gitlab.io/omnibus-gitlab/gitlab-ce.html and http://gitlab-org.gitlab.io/omnibus-gitlab/gitlab-ee.html
Edited by 🤖 GitLab Bot 🤖

Merge request reports