diff --git a/.github/workflows/publish-artifacthub.yml b/.github/workflows/publish-artifacthub.yml new file mode 100644 index 0000000000..f33455e4fb --- /dev/null +++ b/.github/workflows/publish-artifacthub.yml @@ -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/login-action@v2.1.0 + 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 diff --git a/helm/artifacthub-repo.yml b/helm/artifacthub-repo.yml new file mode 100644 index 0000000000..362b4e2d4c --- /dev/null +++ b/helm/artifacthub-repo.yml @@ -0,0 +1,4 @@ +repositoryID: 11704731-627d-4eec-9078-33b96c55a846 +owners: + - name: tnotheis + email: timo.notheisen@js-soft.com