Skip to content

Commit fce66ed

Browse files
committed
Fix Makefile to correctly release Helm chart
1 parent 8f35f9c commit fce66ed

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

Makefile

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1359,10 +1359,12 @@ ifeq (true, $(PRE_RELEASE))
13591359
mkdir -p charts-unstable || true
13601360
cp $(BUILD_HELM)/coherence-operator-$(VERSION).tgz charts-unstable/
13611361
helm repo index charts-unstable --url https://oracle.github.io/coherence-operator/charts-unstable
1362+
git add charts-unstable/coherence-operator-$(VERSION).tgz
1363+
git add charts-unstable/index.yaml
13621364
ls -ls charts-unstable
13631365

1364-
git status
13651366
git add docs-unstable/*
1367+
git status
13661368
else
13671369
mkdir docs/$(VERSION) || true
13681370
rm -rf docs/$(VERSION)/ || true
@@ -1372,17 +1374,19 @@ else
13721374
mkdir -p charts || true
13731375
cp $(BUILD_HELM)/coherence-operator-$(VERSION).tgz charts/
13741376
helm repo index charts --url https://oracle.github.io/coherence-operator/charts
1377+
git add charts/coherence-operator-$(VERSION).tgz
1378+
git add charts/index.yaml
13751379
ls -ls charts
13761380

1377-
git status
13781381
git add docs/*
1382+
git status
13791383
endif
13801384
git clean -d -f
13811385
git status
1382-
git commit -m "adding Coherence Operator docs version: $(VERSION)"
1386+
git commit -m "adding Coherence Operator Helm chart and docs version: $(VERSION)"
13831387
git log -1
13841388
ifeq (true, $(RELEASE_DRY_RUN))
1385-
@echo "release dry-run - would have pushed docs $(VERSION) to gh-pages"
1389+
@echo "release dry-run - would have pushed Helm chart and docs $(VERSION) to gh-pages"
13861390
else
13871391
git push origin gh-pages
13881392
endif

0 commit comments

Comments
 (0)