Creating builds
Learn more about creating a build for a new version in Pantheon.
Prerequisites
You must have the following:
title-publisher
role on Pantheon- Connection to the VPN
- Logged in on Pantheon
Creating a build
Complete the following steps:
-
Create a new branch in the rhacm-docs GitHub repository for the new version. For example, 2.9_stage. For more information, see Branch strategy.
-
Navigate to the
modules/common-attributes.adoc
file that is in your new branch to change the version for the:product-version:
field.Important: The build process requires the
:product-version:
value. You must update the field to the new version for the build to work. -
Create a new branch for the new version in GitLab, if it is not already there. Ex.
2.7
. You can create it from the branch from the previous version.- Open the branch for the previous version.
- Select + > New branch.
- Name it the new version number. For example, name the branch 2.7. Note: Do not include the
_stage
in this branch name, as you did with the GitHub branch.
Alternatively: You can run the build script with the new version number to create a branch in GitLab. For more information about running the build, see Refreshing builds.
-
Log in to Pantheon.
-
Select all of the books by checking the box next to the title.
-
Select Bulk actions > Clone, then enter the new version. The configuration of the build is also cloned.
-
Alternatively, you can create a new title manually. Complete the following steps to create a new title in Pantheon:
- Select Set up new title.
- Select to set one up from an existing repository.
- Fill in the following fields to configure the new title:
- Version:
<NewVersion>
- GitLab Group:
Documentation: Red Hat OpenShift Enterprise
- GitLab Project:
Red Hat Advanced Cluster Management for Kubernetes
- Select your new version branch from the drop-down menu for the stage version.
- Select any other version branch from the drop-down menu for the preview version. We do not use this version, and an error occurs if you select the same version for both fields.
- Version:
-
-
After the books are cloned, update the version in each book:
- Click the drop-down arrow in the Stage row of a specific book.
- Click Edit configuration.
- Set the version of the configuration to your new version.
- Add the actual name of your folder in Content Directory. You might need to disable the default settings before the Content Directory field appears.
- Repeat these steps for each book in your Pantheon title to reference the new version and correct directory.
-
Disable the preview feature by clicking the drop-down arrow in the Preview row. Select Disable Job. We don’t use this build.
-
Run the build as you normally would with the new version specified in the command.