Compare commits
7 Commits
bbce198fb7
...
renovate/c
Author | SHA1 | Date | |
---|---|---|---|
fba376a97b | |||
23adcf6472
|
|||
f6b709fba1
|
|||
2324e7d6e2
|
|||
2f2043e915
|
|||
a801fd1480
|
|||
8ac94f8f60
|
49
.drone.yml
49
.drone.yml
@ -1,49 +0,0 @@
|
|||||||
---
|
|
||||||
kind: pipeline
|
|
||||||
type: docker
|
|
||||||
name: default
|
|
||||||
|
|
||||||
trigger:
|
|
||||||
event:
|
|
||||||
- push
|
|
||||||
- tag
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: lint
|
|
||||||
image: cr.grachevko.ru/docker.io/alpine/helm:latest
|
|
||||||
pull: always
|
|
||||||
commands:
|
|
||||||
- helm lint .
|
|
||||||
|
|
||||||
- name: version
|
|
||||||
image: cr.grachevko.ru/docker.io/mikefarah/yq:latest
|
|
||||||
pull: always
|
|
||||||
user: root
|
|
||||||
commands:
|
|
||||||
- yq -i '.version = "'$DRONE_TAG'"' Chart.yaml
|
|
||||||
- cat Chart.yaml
|
|
||||||
depends_on:
|
|
||||||
- lint
|
|
||||||
when:
|
|
||||||
event:
|
|
||||||
- tag
|
|
||||||
|
|
||||||
- name: release
|
|
||||||
image: cr.grachevko.ru/docker.io/alpine/helm:latest
|
|
||||||
pull: always
|
|
||||||
commands:
|
|
||||||
- helm dependency build
|
|
||||||
- helm plugin install https://github.com/chartmuseum/helm-push
|
|
||||||
- helm repo add hasura $HELM_REPO --username $HELM_REPO_USERNAME --password $HELM_REPO_PASSWORD
|
|
||||||
- helm cm-push . $HELM_REPO
|
|
||||||
environment:
|
|
||||||
HELM_REPO: https://harbor.grachevko.ru/chartrepo/hasura
|
|
||||||
HELM_REPO_USERNAME:
|
|
||||||
from_secret: HELM_REPO_USERNAME
|
|
||||||
HELM_REPO_PASSWORD:
|
|
||||||
from_secret: HELM_REPO_PASSWORD
|
|
||||||
depends_on:
|
|
||||||
- version
|
|
||||||
when:
|
|
||||||
event:
|
|
||||||
- tag
|
|
29
.gitea/workflows/release.yaml
Normal file
29
.gitea/workflows/release.yaml
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
name: Release Chart
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- '*'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
release:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
env:
|
||||||
|
REGISTRY: harbor.grachevko.ru
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- uses: yokawasa/action-setup-kube-tools@v0.9.3
|
||||||
|
with:
|
||||||
|
setup-tools: helm
|
||||||
|
- name: deps and lint
|
||||||
|
run: |
|
||||||
|
helm dependency update
|
||||||
|
helm lint --strict .
|
||||||
|
- name: build
|
||||||
|
run: helm package --version ${{ gitea.ref_name }} .
|
||||||
|
- name: publish
|
||||||
|
run: |
|
||||||
|
echo "${{ secrets.REGISTRY_PASSWORD }}" | helm registry login ${{ env.REGISTRY }} --username "${{ secrets.REGISTRY_USERNAME }}" --password-stdin
|
||||||
|
helm push ./*.tgz oci://harbor.grachevko.ru/${{ gitea.repository }}
|
@ -3,7 +3,7 @@ name: hasura
|
|||||||
description: A Helm chart for Kubernetes
|
description: A Helm chart for Kubernetes
|
||||||
type: application
|
type: application
|
||||||
version: 0.2.6
|
version: 0.2.6
|
||||||
appVersion: v2.16.0
|
appVersion: 2.33.0
|
||||||
icon: https://raw.githubusercontent.com/hasura/graphql-engine/master/assets/brand/powered_by_hasura_primary_lightbg.svg
|
icon: https://raw.githubusercontent.com/hasura/graphql-engine/master/assets/brand/powered_by_hasura_primary_lightbg.svg
|
||||||
maintainers:
|
maintainers:
|
||||||
- email: me@grachevko.ru
|
- email: me@grachevko.ru
|
||||||
|
3
renovate.json
Normal file
3
renovate.json
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"$schema": "https://docs.renovatebot.com/renovate-schema.json"
|
||||||
|
}
|
@ -60,3 +60,12 @@ Create the name of the service account to use
|
|||||||
{{- default "default" .Values.serviceAccount.name }}
|
{{- default "default" .Values.serviceAccount.name }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
|
{{- define "hasura.image" -}}
|
||||||
|
{{- .Values.image.registry }}/{{ .Values.image.repository }}:
|
||||||
|
{{- if .Values.image.tag }}
|
||||||
|
{{- .Values.image.tag -}}
|
||||||
|
{{- else -}}
|
||||||
|
v{{ .Chart.AppVersion }}.cli-migrations-v3
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
@ -31,7 +31,7 @@ spec:
|
|||||||
- name: {{ .Chart.Name }}
|
- name: {{ .Chart.Name }}
|
||||||
securityContext:
|
securityContext:
|
||||||
{{- toYaml .Values.securityContext | nindent 12 }}
|
{{- toYaml .Values.securityContext | nindent 12 }}
|
||||||
image: "{{ .Values.image.registry }}/{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
|
image: {{ include "hasura.image" . }}
|
||||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||||
envFrom:
|
envFrom:
|
||||||
{{- if .Values.extraEnvVarsSecret }}
|
{{- if .Values.extraEnvVarsSecret }}
|
||||||
|
@ -34,7 +34,7 @@ spec:
|
|||||||
mountPath: /shared-data
|
mountPath: /shared-data
|
||||||
containers:
|
containers:
|
||||||
- name: migrate
|
- name: migrate
|
||||||
image: "{{ .Values.image.registry }}/{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
|
image: {{ include "hasura.image" . }}
|
||||||
command: ["/bin/sh", "-c"]
|
command: ["/bin/sh", "-c"]
|
||||||
args:
|
args:
|
||||||
- hasura-cli deploy
|
- hasura-cli deploy
|
||||||
|
@ -9,7 +9,7 @@ image:
|
|||||||
repository: hasura/graphql-engine
|
repository: hasura/graphql-engine
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
# Overrides the image tag whose default is the chart appVersion.
|
# Overrides the image tag whose default is the chart appVersion.
|
||||||
tag: v2.15.0.cli-migrations-v3
|
tag: ""
|
||||||
pullSecrets: []
|
pullSecrets: []
|
||||||
|
|
||||||
extraEnvVarsSecret: ""
|
extraEnvVarsSecret: ""
|
||||||
|
Reference in New Issue
Block a user