Make OSS component list available online
Closes #3486 (closed) Depends on gitlab-build-images!108 (merged)
Workflow
In the release pipeline
- Check if Ubuntu 18.04. Don't do anything if it isn't.
- After the regular operations, pull the S3 bucket to a local folder
- Copy the license file to appropriate location (for eg:
gitalb-ce/11.0/11.0.1+ce.0.license
) - Generate the html page (for the current type) based on all the files inside the bucket.
- Push back everything to the bucket
In the scheduled pipeline
- Pull in the S3 bucket to
pulic
folder. - Copy all webpages and related files (CSS stylesheet) to public folder
- Deploy to GL Pages
Requirements
- A small base image with aws s3 - gitlab-build-images!108 (merged)
- An S3 bucket for storing licenses
- 3 environment variables in both .com project and dev.gitlab.org project
LICENSES_S3_BUCKET
-
AWS_ACCESS_KEY_ID
- This is already in dev.gitlab.org project. -
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
Edited by 🤖 GitLab Bot 🤖