Skip to content

Commit 3352246

Browse files
committed
fix(ci): use SVG logo in OLM bundle and generate icon at build time
Replace hardcoded PNG base64 (19 KB) with SVG (1.7 KB) read from docs/logo.svg at bundle generation time. The icon now stays in sync with any logo updates automatically. Substitution points: __VERSION__, __DATE__, __ICON_BASE64__. Signed-off-by: Sebastien Tardif <sebtardif@ncf.ca>
1 parent b6aeebf commit 3352246

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,8 @@ generate-olm-bundle: manifests ## Generate OLM bundle for OperatorHub submission
397397
BUNDLE_DIR=dist/olm-bundle/$$VERSION && \
398398
echo "Generating OLM bundle for version $$VERSION..." && \
399399
mkdir -p "$$BUNDLE_DIR/manifests" "$$BUNDLE_DIR/metadata" && \
400-
sed "s/__VERSION__/$$VERSION/g; s/__DATE__/$$DATE/g" \
400+
ICON_B64=$$(base64 < docs/logo.svg | tr -d '\n') && \
401+
sed "s/__VERSION__/$$VERSION/g; s/__DATE__/$$DATE/g; s/__ICON_BASE64__/$$ICON_B64/g" \
401402
config/olm/template/manifests/attune-operator.clusterserviceversion.yaml \
402403
> "$$BUNDLE_DIR/manifests/attune-operator.clusterserviceversion.yaml" && \
403404
cp config/olm/template/metadata/annotations.yaml "$$BUNDLE_DIR/metadata/" && \

0 commit comments

Comments
 (0)