Initial commit.
All checks were successful
Releasing charts / upload_helm (pgbouncer) (push) Successful in 24s
Releasing charts / upload_helm (py-app) (push) Successful in 14s

This commit is contained in:
2025-07-08 04:10:26 +02:00
parent cf5d24cd73
commit a8a206e5d4
4 changed files with 10 additions and 12 deletions

View File

@ -14,9 +14,6 @@ jobs:
chart:
- py-app
- pgbouncer
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- uses: azure/setup-helm@v4.2.0
@ -26,7 +23,7 @@ jobs:
run: |
helm package --dependency-update ./charts/${{ matrix.chart }}
helm show chart *.tgz
helm registry login -u ${{ github.actor }} -p ${{ secrets.GITHUB_TOKEN }} ghcr.io
helm push *.tgz oci://ghcr.io/intreecom/charts
helm registry login -u ${{ gitea.actor }} -p ${{ secrets.UPLOADER_PAT }} gitea.le-memese.com
helm push *.tgz oci://gitea.le-memese.com/common/charts
env:
HELM_EXPERIMENTAL_OCI: 1

View File

@ -7,8 +7,9 @@ metadata:
labels:
{{- include "py-app.labels" $ | nindent 4 }}
annotations:
argocd.argoproj.io/hook: PreSync,Sync
argocd.argoproj.io/sync-wave: "-1"
"helm.sh/hook": pre-install,pre-upgrade
"helm.sh/hook-delete-policy": before-hook-creation
"helm.sh/hook-weight": "-1"
spec:
refreshInterval: {{ default "1h" $val.refreshInterval }}
secretStoreRef:

View File

@ -5,12 +5,12 @@
apiVersion: batch/v1
kind: Job
metadata:
generateName: "{{ include "py-app.fullname" $ }}-{{ $name }}-mj"
name: "{{ include "py-app.fullname" $ }}-{{ $name }}-mj"
labels:
{{- include "py-app.labels" $ | nindent 4 }}
annotations:
argocd.argoproj.io/hook: PreSync
argocd.argoproj.io/hook-delete-policy: HookSucceeded
"helm.sh/hook": pre-install,pre-upgrade
"helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded
{{- with $val.annotations }}
{{- toYaml . | nindent 4 }}
{{- end }}

View File

@ -20,7 +20,7 @@ migrators: {}
# pg:
# # Job's additional annotations
# annotations:
# argocd.argoproj.io/sync-wave: "5"
# "helm.sh/hook-weight": "-1"
# command: ["alembic", "upgrade", "head"]
# # You can specify limits for every migrator Job.
# resources: {}