From 2b82ae473746873e0a371f2606a3cc46b44df6ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julian=20K=C3=B6nig?= <33655937+jkoenig134@users.noreply.github.com> Date: Wed, 18 Oct 2023 10:55:22 +0200 Subject: [PATCH] Push ArtifactHub verification to ghcr (#347) * chore: add helm/artifacthub-repo.yml * ci: add pipeline --- .github/workflows/publish-artifacthub.yml | 31 +++++++++++++++++++++++ helm/artifacthub-repo.yml | 4 +++ 2 files changed, 35 insertions(+) create mode 100644 .github/workflows/publish-artifacthub.yml create mode 100644 helm/artifacthub-repo.yml 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