openedx-unsupported / configuration

A collection of edx configuration scripts and utilities that edx.org uses to deploy openedx.
GNU Affero General Public License v3.0
823 stars 969 forks source link

Allow running prospectus playbook in parts #6994

Closed jdmulloy closed 1 year ago

jdmulloy commented 1 year ago

By default the playbook should run in order as normal. This change provides 3 new variables which allows a build pipeline to run the prospectus build in 3 parts.

  1. PROSPECTUS_ENABLE_PRE_BUILD: Runs everything before npm run build
  2. PROSPECTUS_ENABLE_NPM_BUILD: Runs npm run build
  3. PROSPECTUS_ENABLE_PRE_BUILD: Runs everything after npm run build

This will allow us to run npm run build directly via ssh so we can see error output without waiting for it to finish and return to ansible.

This will also allow time for the nginx build to run in parallel as soon as the redirects file has been generated.

Configuration Pull Request

Make sure that the following steps are done before merging: