Skip to content

Commit

Permalink
Remove the chart build tag containing the release number
Browse files Browse the repository at this point in the history
The release number causes issues with the OBS publish script as that
would require deleting old releases... which is not permitted.
  • Loading branch information
cbosdo committed Oct 7, 2024
1 parent 3790ee2 commit 06ac3d1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions containers/proxy-helm/proxy-helm.changes.cbosdo
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Remove the build tag with the release number
1 change: 1 addition & 0 deletions containers/server-helm/server-helm.changes.cbosdo
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Remove the build tag with the release number
2 changes: 1 addition & 1 deletion rel-eng/chart_push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ if [ -f "${SRPM_PKG_DIR}/Chart.yaml" ]; then
# Remove leading zero from Uyuni release and add potentially missing micro part
SEMANTIC_VERSION=$(echo ${PRODUCT_VERSION} | sed 's/\([0-9]\+\)\.0\?\([1-9][0-9]*\)\(\.\([0-9]\+\)\)\?\( .\+\)\?/\1.\2.\4\5/' | sed 's/\.$/.0/')
# Also include the semantic version since helm chart wants it for OCI repos (those generated by OBS)
sed "/^#\!BuildTag:/ s/$/ ${NAME}:${SEMANTIC_VERSION} ${NAME}:${PRODUCT_VERSION} ${NAME}:${PRODUCT_VERSION}.%RELEASE%/" -i ${SRPM_PKG_DIR}/Chart.yaml
sed "/^#\!BuildTag:/ s/$/ ${NAME}:${SEMANTIC_VERSION} ${NAME}:${PRODUCT_VERSION}" -i ${SRPM_PKG_DIR}/Chart.yaml

rm ${SRPM_PKG_DIR}/${PKG_NAME}.spec
fi
Expand Down

0 comments on commit 06ac3d1

Please sign in to comment.