Skip to content

Commit 0d63acc

Browse files
authored
chore: verify ArtifactHub ownership as OCI artifact (#102)
Signed-off-by: Tomas Coufal <[email protected]>
1 parent 1d5bd60 commit 0d63acc

File tree

5 files changed

+24
-3
lines changed

5 files changed

+24
-3
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ jobs:
4848
- name: Install Cosign
4949
uses: sigstore/cosign-installer@204a51a57a74d190b284a0ce69b44bc37201f343 #[email protected]
5050

51+
- name: Install Oras
52+
uses: oras-project/setup-oras@c90396b2ddabd5a364e6551a79984c86cc036996 # v1.0.0
53+
5154
- name: Publish and Sign OCI Charts
5255
run: |
5356
for chart in `find .cr-release-packages -name '*.tgz' -print`; do
@@ -56,6 +59,8 @@ jobs:
5659
chart_name=${file_name%-*}
5760
digest=$(awk -F "[, ]+" '/Digest/{print $NF}' < helm-push-output.log)
5861
cosign sign -y "ghcr.io/${GITHUB_REPOSITORY}/${chart_name}@${digest}"
62+
63+
oras push "ghcr.io/${GITHUB_REPOSITORY}/${chart_name}:artifacthub.io" "./charts/${chart_name}/artifacthub-repo.yml:application/vnd.cncf.artifacthub.repository-metadata.layer.v1.yaml"
5964
done
6065
env:
6166
COSIGN_EXPERIMENTAL: 1

charts/backstage/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,4 @@ sources:
3838
# This is the chart version. This version number should be incremented each time you make changes
3939
# to the chart and its templates, including the app version.
4040
# Versions are expected to follow Semantic Versioning (https://semver.org/)
41-
version: 0.22.3
41+
version: 0.22.4

charts/backstage/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11

22
# Backstage Helm Chart
33

4-
![Version: 0.22.3](https://img.shields.io/badge/Version-0.22.3-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
4+
[![Artifact Hub](https://img.shields.io/endpoint?url=https://artifacthub.io/badge/repository/janus-idp&style=flat-square)](https://artifacthub.io/packages/search?repo=janus-idp)
5+
![Version: 0.22.4](https://img.shields.io/badge/Version-0.22.4-informational?style=flat-square)
6+
![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
57

68
A Helm chart for deploying a Backstage application
79

charts/backstage/README.md.gotmpl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22

33
{{ template "chart.deprecationWarning" . }}
44

5-
{{ template "chart.badgesSection" . }}
5+
[![Artifact Hub](https://img.shields.io/endpoint?url=https://artifacthub.io/badge/repository/janus-idp&style=flat-square)](https://artifacthub.io/packages/search?repo=janus-idp)
6+
{{ template "chart.versionBadge" . }}
7+
{{ template "chart.typeBadge" . }}
68

79
{{ template "chart.description" . }}
810

charts/backstage/artifacthub-repo.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Artifact Hub repository metadata file
2+
#
3+
# Some settings like the verified publisher flag or the ignored packages won't
4+
# be applied until the next time the repository is processed. Please keep in
5+
# mind that the repository won't be processed if it has not changed since the
6+
# last time it was processed. Depending on the repository kind, this is checked
7+
# in a different way. For Helm http based repositories, we consider it has
8+
# changed if the `index.yaml` file changes. For git based repositories, it does
9+
# when the hash of the last commit in the branch you set up changes. This does
10+
# NOT apply to ownership claim operations, which are processed immediately.
11+
#
12+
repositoryID: b17b52d1-dd33-4328-84bf-259d5ee7546b

0 commit comments

Comments
 (0)