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 11, 2024
1 parent 690c0db commit 7797cf0
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,17 @@ jobs:
helm push "${pkg}" oci://ghcr.io/"${GITHUB_REPOSITORY_OWNER}"/charts |& tee .digest
cosign sign $(cat .digest | awk -F "[, ]+" '/Pushed/{print $NF}')
done
- name: Install oras
env:
ORAS_VERSION: 1.2.0
run: |
curl -LO "https://github.com/oras-project/oras/releases/download/v${VERSION}/oras_${VERSION}_linux_amd64.tar.gz"
mkdir -p oras-install/
tar -zxf oras_${VERSION}_*.tar.gz -C oras-install/
sudo mv oras-install/oras /usr/local/bin/
rm -rf oras_${VERSION}_*.tar.gz oras-install/
- name: Push artifacthub-repo.yml to GHCR
run: |
oras push registry/namespace/chart-name:artifacthub.io \
--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 7797cf0

Please sign in to comment.