Check for docs bump
The bbctl
application and chart are unique in that the application code and and the chart live in the same repository. All pipelines need to be conscious of this and act accordingly.
For this ticket, we want to add checks into our bbctl
pipelines that match those in the other helm charts, that check for changes to the docs, and if there are any changes made, determine if it was a docs change for the helm chart or for the application code, and verify the correct corresponding CHANGELOG is updated.
- Version needs to be different than the target
source_branch_name=$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME target_branch_name=$CI_MERGE_REQUEST_TARGET_BRANCH_NAME source_version="$(curl -Ls "https://repo1.dso.mil/big-bang/product/packages/bbctl/-/raw/$source_branch_name/static/resources/constants.yaml" | yq '.BigBangCliVersion')" target_version="$(curl -Ls "https://repo1.dso.mil/big-bang/product/packages/bbctl/-/raw/$target_branch_name/static/resources/constants.yaml" | yq '.BigBangCliVersion')" if [ "$source_version" == "$target_version"]; then echo "version must change" 1>&2 exit 1 fi
- Ensure the CHANGELOG was updated
Edited by Daniel Dides