Skip to content

Commit 9ee4144

Browse files
committed
Update release routine to do OCI push
1 parent 659fb7b commit 9ee4144

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.circleci/release.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,15 @@ package_chart() {
2626
}
2727

2828
release_charts() {
29-
echo "Upload Helm chart packages"
29+
echo "Upload Helm chart packages to GitHub"
3030
cr upload -o "${OWNER}" -r "${GIT_REPO}" -p "${PACKAGE_PATH}"
31+
32+
echo "Upload Helm chart packages to GHCR OCI"
33+
echo "${HELM_GH_TOKEN}" | helm registry login ghcr.io --username "${OWNER}" --password-stdin
34+
35+
for chart in "${PACKAGE_PATH}"/*.tgz; do
36+
helm push "${chart}" "oci://ghcr.io/${OWNER}/${GIT_REPO}"
37+
done
3138
}
3239

3340
update_index() {

0 commit comments

Comments
 (0)