Skip to content

Commit

Permalink
feat(artifacthub): push artifacthub-repo.yml file to oci repository
Browse files Browse the repository at this point in the history
Signed-off-by: asdfgugus <[email protected]>
  • Loading branch information
asdfgugus committed Jul 17, 2024
1 parent 690c0db commit 8d75857
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
13 changes: 13 additions & 0 deletions artifacthub-repo.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 8d75857

Please sign in to comment.