Skip to content

Latest commit

 

History

History
55 lines (31 loc) · 3.61 KB

cms-content-release.md

File metadata and controls

55 lines (31 loc) · 3.61 KB

CMS Content Release

Content releases are initiated in one of two ways:

Automatic

Timed

The Content Release Github Action Workflow handles automatic content deploys.

It is currently set to execute weekdays at 9AM, 10AM, 11AM, 12PM, 1PM, 2PM, 3PM, 4PM, and 5PM.

Triggered

The content release is also triggered based upon content updates in Drupal. The logic that controls when a build is triggered is at Drupal\va_gov_build_trigger\Service::triggerFrontendBuildFromContentSave().

Manual

Manual content releases are initiated from the "Release content" page in the CMS.

This page is constructed by the va_gov_build_trigger module. The page will differ slightly in presentation and significantly in the details of its operation depending on which environment hosts it.

Build-Release-Deploy (Production)

The "Release content" page on the BRD production environment invokes the [same Github Action Workflow]https://github.com/department-of-veterans-affairs/content-build/actions/workflows/content-release.yml) as the automatic deploys. Accordingly the content build output should be identical.

The Jenkins job configuration is stored in Drupal settings.php. Here are the settings for production. Settings for other environments can be found in the *.settings.php files. The setting keys are:

$settings['va_gov_frontend_build_type'] = 'brd';
$settings['github_actions_deploy_env'] = 'prod';

Build-Release-Deploy (Staging)

The "Release content" page on the BRD staging environment is currently disabled because the content release GHA workflow does not support any environment other than production.

To manually run the Content Release job:

  1. Go to https://github.com/department-of-veterans-affairs/content-build/actions/workflows/content-release.yml.
  2. Click "Run Workflow"

image

More documentation for the content build can be found here.

Tugboat and Local Development

The Tugboat and local development (Lando, etc) versions of the Release content page do not trigger a Github Actions workflow. Instead, they check out the latest version (or a specified branch or release) of the frontend, build it, and then perform a content release.

For more information on creating or releasing content from a preview environment, see Environments.

Table of Contents