Skip to content

Commit

Permalink
Push ArtifactHub verification to ghcr (#347)
Browse files Browse the repository at this point in the history
* chore: add helm/artifacthub-repo.yml

* ci: add pipeline
  • Loading branch information
jkoenig134 authored Oct 18, 2023
1 parent 83aaad2 commit 2b82ae4
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/publish-artifacthub.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Artifact Repo Publish

on:
push:
branches: [main]
paths: [helm/artifacthub-repo.yml]

jobs:
upload-artifact-repo-config:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install oras
run: |
curl -L https://github.com/oras-project/oras/releases/download/v1.1.0/oras_1.1.0_linux_amd64.tar.gz -o oras.tar.gz
tar -xzf oras.tar.gz oras
sudo mv oras /usr/local/bin
rm oras.tar.gz
- name: Docker Login
uses: docker/[email protected]
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: oras push
working-directory: ./helm
run: |
oras push \
ghcr.io/nmshd/backbone-helm-chart:artifacthub.io \
--config /dev/null:application/vnd.cncf.artifacthub.config.v1+yaml \
artifacthub-repo.yml:application/vnd.cncf.artifacthub.repository-metadata.layer.v1.yaml
4 changes: 4 additions & 0 deletions helm/artifacthub-repo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
repositoryID: 11704731-627d-4eec-9078-33b96c55a846
owners:
- name: tnotheis
email: [email protected]

0 comments on commit 2b82ae4

Please sign in to comment.