Skip to content

Run compile_prod explicitly in hourly deployments

Marcel Amirault requested to merge fix-missing-compile-prod into main

!3627 (merged) broke master because compile_prod and pages stopped running in the default branch for the hourly deployment pipeline.

This is due to the order of operations in the workflow:rules section. The hourly deployments rule matches before the default branch pipeline rule. So for those hourly deployment pipelines, if: '$DOCS_PROJECT_PIPELINE_TYPE == "Default branch pipeline"' would not work, it needs to be if: '$DOCS_PROJECT_PIPELINE_TYPE == "Hourly site deployment pipeline"'.

But we still want to keep the if: '$DOCS_PROJECT_PIPELINE_TYPE == "Default branch pipeline"' rule for these jobs, so that they also run after an MR merges and hits the default branch.

Edited by Marcel Amirault

Merge request reports