update chart and release configs
This commit is contained in:
@@ -16,7 +16,7 @@ jobs:
|
|||||||
- name: Install packages via apt
|
- name: Install packages via apt
|
||||||
run: |
|
run: |
|
||||||
apt update --yes
|
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
|
- name: Install helm
|
||||||
env:
|
env:
|
||||||
@@ -46,18 +46,13 @@ jobs:
|
|||||||
apt update --yes
|
apt update --yes
|
||||||
apt install --yes python3 python3-pip apt-transport-https docker-ce-cli
|
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
|
- name: Import GPG key
|
||||||
id: import_gpg
|
id: import_gpg
|
||||||
uses: https://github.com/crazy-max/ghaction-import-gpg@v6
|
uses: https://github.com/crazy-max/ghaction-import-gpg@v6
|
||||||
with:
|
with:
|
||||||
gpg_private_key: ${{ secrets.GPGSIGN_KEY }}
|
gpg_private_key: ${{ secrets.GPGSIGN_KEY }}
|
||||||
passphrase: ${{ secrets.GPGSIGN_PASSPHRASE }}
|
passphrase: ${{ secrets.GPGSIGN_PASSPHRASE }}
|
||||||
fingerprint: CC64B1DB67ABBEECAB24B6455FC346329753F4B0
|
fingerprint: CCCDAD206FCE593128D2C7A22781E520334944DD
|
||||||
|
|
||||||
- name: Add Artifacthub.io annotations
|
- name: Add Artifacthub.io annotations
|
||||||
run: |
|
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
|
# Using helm gpg plugin as 'helm package --sign' has issues with gpg2: https://github.com/helm/helm/issues/2843
|
||||||
- name: package chart
|
- name: package chart
|
||||||
run: |
|
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
|
# 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 plugin install https://github.com/pat-s/helm-gpg
|
||||||
helm dependency build
|
helm dependency build
|
||||||
helm package --version "${GITHUB_REF#refs/tags/v}" ./
|
helm package --version "${GITHUB_REF#refs/tags/v}" ./
|
||||||
mkdir gitea
|
mkdir gitea
|
||||||
mv gitea*.tgz gitea/
|
mv gitea*.tgz gitea/
|
||||||
curl --fail --location --output gitea/index.yaml --silent --show-error https://dl.gitea.com/charts/index.yaml
|
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://dl.gitea.com/charts --merge gitea/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
|
||||||
# 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 }}
|
|
||||||
|
|
||||||
- name: Copy files to S3 and clear cache
|
- name: Copy files to S3 and clear cache
|
||||||
run: |
|
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:
|
release-gitea:
|
||||||
needs: generate-chart-publish
|
needs: generate-chart-publish
|
||||||
|
|||||||
19
Chart.yaml
19
Chart.yaml
@@ -1,6 +1,6 @@
|
|||||||
apiVersion: v2
|
apiVersion: v2
|
||||||
name: gitea
|
name: gitea
|
||||||
description: Gitea Helm chart for Kubernetes
|
description: (Unofficial) Gitea Helm chart for Kubernetes
|
||||||
type: application
|
type: application
|
||||||
version: 0.0.0
|
version: 0.0.0
|
||||||
# renovate datasource=github-releases depName=go-gitea/gitea extractVersion=^v(?<version>.*)$
|
# renovate datasource=github-releases depName=go-gitea/gitea extractVersion=^v(?<version>.*)$
|
||||||
@@ -10,7 +10,7 @@ icon: https://gitea.com/assets/img/logo.svg
|
|||||||
annotations:
|
annotations:
|
||||||
artifacthub.io/links: |
|
artifacthub.io/links: |
|
||||||
- name: support
|
- name: support
|
||||||
url: https://gitea.com/gitea/helm-gitea/issues
|
url: https://git.dubyatp.xyz/williamp/helm-gitea/issues
|
||||||
|
|
||||||
keywords:
|
keywords:
|
||||||
- git
|
- git
|
||||||
@@ -26,19 +26,8 @@ sources:
|
|||||||
- https://docker.gitea.com/gitea
|
- https://docker.gitea.com/gitea
|
||||||
|
|
||||||
maintainers:
|
maintainers:
|
||||||
# https://gitea.com/rossigee
|
- name: William Peebles
|
||||||
- name: Ross Golder
|
email: me@williamtpeebles.com
|
||||||
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
|
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
# https://github.com/bitnami/charts/blob/main/bitnami/postgresql
|
# https://github.com/bitnami/charts/blob/main/bitnami/postgresql
|
||||||
- name: postgresql
|
- name: postgresql
|
||||||
|
|||||||
Reference in New Issue
Block a user