From 0bbab9c8a047ab93e0d1279522c1d3eae829125c Mon Sep 17 00:00:00 2001 From: William P Date: Mon, 12 Jan 2026 13:53:42 -0500 Subject: [PATCH] update chart and release configs --- .gitea/workflows/release-version.yml | 35 +++++++++++----------------- Chart.yaml | 19 ++++----------- 2 files changed, 17 insertions(+), 37 deletions(-) diff --git a/.gitea/workflows/release-version.yml b/.gitea/workflows/release-version.yml index b56b9c9..c36d72b 100644 --- a/.gitea/workflows/release-version.yml +++ b/.gitea/workflows/release-version.yml @@ -16,7 +16,7 @@ jobs: - name: Install packages via apt run: | apt update --yes - apt install --yes curl ca-certificates curl gnupg jq + apt install --yes curl ca-certificates curl gnupg jq s3cmd - name: Install helm env: @@ -46,18 +46,13 @@ jobs: apt update --yes apt install --yes python3 python3-pip apt-transport-https docker-ce-cli - - name: Install awscli - run: | - pip install awscli --break-system-packages - aws --version - - name: Import GPG key id: import_gpg uses: https://github.com/crazy-max/ghaction-import-gpg@v6 with: gpg_private_key: ${{ secrets.GPGSIGN_KEY }} passphrase: ${{ secrets.GPGSIGN_PASSPHRASE }} - fingerprint: CC64B1DB67ABBEECAB24B6455FC346329753F4B0 + fingerprint: CCCDAD206FCE593128D2C7A22781E520334944DD - name: Add Artifacthub.io annotations run: | @@ -71,30 +66,26 @@ jobs: # Using helm gpg plugin as 'helm package --sign' has issues with gpg2: https://github.com/helm/helm/issues/2843 - name: package chart run: | - echo ${{ secrets.DOCKER_CHARTS_PASSWORD }} | docker login -u ${{ secrets.DOCKER_CHARTS_USERNAME }} --password-stdin # FIXME: use upstream after https://github.com/technosophos/helm-gpg/issues/1 is solved helm plugin install https://github.com/pat-s/helm-gpg helm dependency build helm package --version "${GITHUB_REF#refs/tags/v}" ./ mkdir gitea mv gitea*.tgz gitea/ - curl --fail --location --output gitea/index.yaml --silent --show-error https://dl.gitea.com/charts/index.yaml - helm repo index gitea/ --url https://dl.gitea.com/charts --merge gitea/index.yaml - # push to dockerhub - echo ${{ secrets.DOCKER_CHARTS_PASSWORD }} | helm registry login -u ${{ secrets.DOCKER_CHARTS_USERNAME }} registry-1.docker.io --password-stdin - helm push gitea/gitea-${GITHUB_REF#refs/tags/v}.tgz oci://registry-1.docker.io/giteacharts - helm registry logout registry-1.docker.io - - - name: aws credential configure - uses: https://github.com/aws-actions/configure-aws-credentials@v5 - with: - aws-access-key-id: ${{ secrets.AWS_KEY_ID }} - aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - aws-region: ${{ secrets.AWS_REGION }} + curl --fail --location --output gitea/index.yaml --silent --show-error https://weyma-s3.infra.dubyatp.xyz/helm-bucket-ea34bc44-ef19-480d-a16a-1e583991f123/charts/index.yaml + helm repo index gitea/ --url https://weyma-s3.infra.dubyatp.xyz/helm-bucket-ea34bc44-ef19-480d-a16a-1e583991f123/charts/index.yaml --merge gitea/index.yaml - name: Copy files to S3 and clear cache run: | - aws s3 sync gitea/ s3://${{ secrets.AWS_S3_BUCKET}}/charts/ + cat > /root/.s3cfg << EOF + [default] + access_key = ${{ secrets.S3_ACCESS_KEY }} + secret_key = ${{ secrets.S3_SECRET_KEY }} + host_base = weyma-s3.infra.dubyatp.xyz + host_bucket = weyma-s3.infra.dubyatp.xyz + use_https = True + EOF + s3cmd sync --recursive --acl-public gitea/ s3://${{ secrets.AWS_S3_BUCKET}}/charts/ release-gitea: needs: generate-chart-publish diff --git a/Chart.yaml b/Chart.yaml index 598bfe8..b438797 100644 --- a/Chart.yaml +++ b/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 name: gitea -description: Gitea Helm chart for Kubernetes +description: (Unofficial) Gitea Helm chart for Kubernetes type: application version: 0.0.0 # renovate datasource=github-releases depName=go-gitea/gitea extractVersion=^v(?.*)$ @@ -10,7 +10,7 @@ icon: https://gitea.com/assets/img/logo.svg annotations: artifacthub.io/links: | - name: support - url: https://gitea.com/gitea/helm-gitea/issues + url: https://git.dubyatp.xyz/williamp/helm-gitea/issues keywords: - git @@ -26,19 +26,8 @@ sources: - https://docker.gitea.com/gitea maintainers: - # https://gitea.com/rossigee - - name: Ross Golder - email: ross@golder.org - # https://gitea.com/volker.raschek - - name: Markus Pesch - email: markus.pesch+apps@cryptic.systems - # https://gitea.com/DaanSelen - - name: Daan Selen - email: dselen@nerthus.nl - # https://gitea.com/ChristopherHX - - name: Christopher Homberger - email: christopher.homberger@web.de - + - name: William Peebles + email: me@williamtpeebles.com dependencies: # https://github.com/bitnami/charts/blob/main/bitnami/postgresql - name: postgresql