Add artifacthub-repo.yml to verify repository
This commit is contained in:
parent
2537c996d9
commit
e22d2a777d
29
.github/workflows/artifacthub.yaml
vendored
Normal file
29
.github/workflows/artifacthub.yaml
vendored
Normal file
@ -0,0 +1,29 @@
|
||||
name: artifacthub
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: ["main"]
|
||||
paths: ["charts/spegel/artifacthub-repo.yml"]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
packages: write
|
||||
|
||||
jobs:
|
||||
release:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Clone repo
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: true
|
||||
- name: Login to GitHub Container Registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: ${{ github.repository_owner }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
- name: Setup ORAS
|
||||
uses: oras-project/setup-oras@v1
|
||||
- name: Push Artifact Hub metadata
|
||||
run: oras push ghcr.io/spegel-org/helm-charts/spegel:artifacthub.io --config /dev/null:application/vnd.cncf.artifacthub.config.v1+yaml charts/spegel/artifacthub-repo.yml:application/vnd.cncf.artifacthub.repository-metadata.layer.v1.yaml
|
1
.github/workflows/release.yaml
vendored
1
.github/workflows/release.yaml
vendored
@ -65,6 +65,7 @@ jobs:
|
||||
- name: Publish Helm chart to GHCR
|
||||
id: helm
|
||||
run: |
|
||||
rm charts/spegel/artifacthub-repo.yml
|
||||
yq -i '.image.digest = "${{ steps.build.outputs.DIGEST }}"' charts/spegel/values.yaml
|
||||
helm package --app-version ${{ steps.prep.outputs.VERSION }} --version ${{ steps.prep.outputs.VERSION }} charts/spegel
|
||||
helm push spegel-${{ steps.prep.outputs.VERSION }}.tgz oci://ghcr.io/spegel-org/helm-charts 2> .digest
|
||||
|
4
charts/spegel/artifacthub-repo.yml
Normal file
4
charts/spegel/artifacthub-repo.yml
Normal file
@ -0,0 +1,4 @@
|
||||
repositoryID: 8122016b-c465-4eaf-be87-f51423aa76f1
|
||||
owners:
|
||||
- name: Philip Laine
|
||||
email: philip.laine@gmail.com
|
Loading…
x
Reference in New Issue
Block a user