From ca7c1f76e5981dcdf5dd0723401a0c1ac9b141ff Mon Sep 17 00:00:00 2001 From: Guilherme Sautner Date: Wed, 13 Dec 2023 09:02:58 -0300 Subject: [PATCH] Add support OCI container registry #23 --- .github/workflows/release.yml | 20 +++++++++++++++++++- charts/cryptpad/Chart.yaml | 2 +- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1326e3b..ecefca2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -77,4 +77,22 @@ jobs: uses: helm/chart-releaser-action@v1.5.0 env: CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" - CR_RELEASE_NAME_TEMPLATE: "cryptpad-helm-{{ .Version }}" \ No newline at end of file + CR_RELEASE_NAME_TEMPLATE: "cryptpad-helm-{{ .Version }}" + + - name: Login to GitHub Container Registry + uses: docker/login-action@v1 + with: + registry: ghcr.io + username: ${{ github.repository_owner }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Push Charts to GHCR + run: | + shopt -s nullglob + for pkg in .cr-release-packages/*.tgz; do + if [ -z "${pkg:-}" ]; then + break + fi + helm push "${pkg}" oci://ghcr.io/${GITHUB_REPOSITORY_OWNER}/helm + done + \ No newline at end of file diff --git a/charts/cryptpad/Chart.yaml b/charts/cryptpad/Chart.yaml index 99778b4..042015e 100644 --- a/charts/cryptpad/Chart.yaml +++ b/charts/cryptpad/Chart.yaml @@ -21,7 +21,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.0.14 +version: 0.0.15 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to