diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index f14722b..fa40946 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -65,3 +65,11 @@ jobs: helm push "${pkg}" oci://ghcr.io/"${GITHUB_REPOSITORY_OWNER}"/charts |& tee .digest cosign sign $(cat .digest | awk -F "[, ]+" '/Pushed/{print $NF}') done + - uses: oras-project/setup-oras@v1 + with: + version: 1.2.0 + - name: Push chart to GHCR + run: | + oras push ghcr.io/"${GITHUB_REPOSITORY_OWNER}"/charts/opencost \ + --config /dev/null:application/vnd.cncf.artifacthub.config.v1+yaml \ + artifacthub-repo.yml:application/vnd.cncf.artifacthub.repository-metadata.layer.v1.yaml diff --git a/artifacthub-repo.yml b/artifacthub-repo.yml new file mode 100644 index 0000000..4a78f9f --- /dev/null +++ b/artifacthub-repo.yml @@ -0,0 +1,13 @@ +# Artifact Hub repository metadata file +# +# Some settings like the verified publisher flag or the ignored packages won't +# be applied until the next time the repository is processed. Please keep in +# mind that the repository won't be processed if it has not changed since the +# last time it was processed. Depending on the repository kind, this is checked +# in a different way. For Helm http based repositories, we consider it has +# changed if the `index.yaml` file changes. For git based repositories, it does +# when the hash of the last commit in the branch you set up changes. This does +# NOT apply to ownership claim operations, which are processed immediately. +# +# Repository: opencost-oci +repositoryID: fc0e734e-ecc9-4351-96e6-0c8934a1b8b1