Skip to content

Commit

Permalink
chore(chart): Added Artifact Hub config support (#5608)
Browse files Browse the repository at this point in the history
Signed-off-by: Steve Hipwell <[email protected]>
  • Loading branch information
stevehipwell authored Feb 16, 2024
1 parent 78dfefc commit bddd3c0
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 0 deletions.
Empty file.
Empty file.
2 changes: 2 additions & 0 deletions hack/release/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,10 @@ publishHelmChart() {
RELEASE_REPO=$3
HELM_CHART_VERSION=$(helmChartVersion "$RELEASE_VERSION")
HELM_CHART_FILE_NAME="${CHART_NAME}-${HELM_CHART_VERSION}.tgz"
AH_CONFIG_FILE_NAME="${CHART_NAME}/artifacthub-repo.yaml"

cd charts
[[ -s "${AH_CONFIG_FILE_NAME}" ]] && oras push "${RELEASE_REPO}:artifacthub.io" --config /dev/null:application/vnd.cncf.artifacthub.config.v1+yaml "${AH_CONFIG_FILE_NAME}:application/vnd.cncf.artifacthub.repository-metadata.layer.v1.yaml"
helm dependency update "${CHART_NAME}"
helm lint "${CHART_NAME}"
helm package "${CHART_NAME}" --version "${HELM_CHART_VERSION}"
Expand Down
1 change: 1 addition & 0 deletions hack/toolchain.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ tools() {
go install github.com/rhysd/actionlint/cmd/actionlint@latest
go install github.com/mattn/goveralls@latest
go install github.com/google/go-containerregistry/cmd/crane@latest
go install oras.land/oras/cmd/oras@latest

if ! echo "$PATH" | grep -q "${GOPATH:-undefined}/bin\|$HOME/go/bin"; then
echo "Go workspace's \"bin\" directory is not in PATH. Run 'export PATH=\"\$PATH:\${GOPATH:-\$HOME/go}/bin\"'."
Expand Down

0 comments on commit bddd3c0

Please sign in to comment.