Compare commits
17 Commits
1.0.25
...
dev-newcha
| Author | SHA1 | Date | |
|---|---|---|---|
| 047c1c8758 | |||
| 9d56d1d0b9 | |||
| b036ce7710 | |||
| d478cb6ec3 | |||
| 3cdaaf07a4 | |||
| 847eca2458 | |||
| a2a9d05ee0 | |||
| 0c2fbf3a79 | |||
| 90e6fced80 | |||
| c60bcd8c9f | |||
| 6a66bc9829 | |||
| b8aef496f4 | |||
| c3c8b8eebe | |||
| b6cd28d1e9 | |||
| 8389dbcee7 | |||
| 7540309c71 | |||
| 4d44f56679 |
23
.gitea/workflows/upload-helm.yml
Normal file
23
.gitea/workflows/upload-helm.yml
Normal file
@@ -0,0 +1,23 @@
|
||||
name: Upload Helm Chart
|
||||
run-name: Uploading helm chart
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
Explore-Gitea-Actions:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
HELM_CHART_VERSION: "1.0.34"
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Set up Helm
|
||||
uses: azure/setup-helm@v1
|
||||
with:
|
||||
version: 'v3.0.0'
|
||||
- run: 'sed -i "s/version:.*/version: \"${HELM_CHART_VERSION}\"/" ./Chart/Chart.yaml'
|
||||
- run: helm package ./Chart
|
||||
- name: Upload Helm Chart
|
||||
run: |
|
||||
curl -ki -X POST \
|
||||
--user ${{ secrets.HELM_PKG_UPLOAD_USER }}:${{ secrets.HELM_PKG_UPLOAD_PASS }} \
|
||||
--upload-file "wordyne-${HELM_CHART_VERSION}.tgz" \
|
||||
https://helm.cloudyne.io/api/charts
|
||||
@@ -2,5 +2,5 @@ apiVersion: v2
|
||||
name: wordyne
|
||||
description: Helm chart for deploying pre-built website containers to kubernetes clusters
|
||||
type: application
|
||||
version: "1.0.24"
|
||||
version: "1.0.27"
|
||||
appVersion: "6.2.2"
|
||||
|
||||
@@ -99,16 +99,16 @@ spec:
|
||||
- name: serverconfig
|
||||
mountPath: /init-go/config.json
|
||||
subPath: init.json
|
||||
{{- if .Values.storage.cloud.active }}
|
||||
- name: cloud
|
||||
mountPath: "/mnt/cloud"
|
||||
{{- end }}
|
||||
{{- if .Values.storage.local.active }}
|
||||
{{- range .Values.storage.folders }}
|
||||
- name: local
|
||||
mountPath: "/app/web/app/{{ . }}"
|
||||
subPath: "{{ . }}"
|
||||
{{- end }}
|
||||
{{- if .Values.storage.cloud.active }}
|
||||
- name: cloud
|
||||
mountPath: "/mnt/cloud"
|
||||
{{- end }}
|
||||
{{- else }}
|
||||
{{- if .Values.storage.cloud.active }}
|
||||
{{- range .Values.storage.folders }}
|
||||
@@ -145,22 +145,34 @@ spec:
|
||||
- name: serverconfig
|
||||
mountPath: /docker-entrypoint.d/unit.json
|
||||
subPath: unit.json
|
||||
{{- if .Values.storage.local.active }}
|
||||
{{- range .Values.storage.folders }}
|
||||
- name: local
|
||||
mountPath: "/app/web/app/{{ . }}"
|
||||
subPath: "{{ . }}"
|
||||
{{- end }}
|
||||
{{- if .Values.storage.cloud.active }}
|
||||
- name: cloud
|
||||
mountPath: "/mnt/cloud"
|
||||
{{- end }}
|
||||
{{- if .Values.storage.local.active }}
|
||||
{{- range .Values.storage.folders }}
|
||||
{{- if or ( eq . "certificates" ) ( eq . "secrets" ) }}
|
||||
- name: local
|
||||
mountPath: "/app/{{ . }}"
|
||||
subPath: "{{ . }}"
|
||||
{{- else }}
|
||||
- name: local
|
||||
mountPath: "/app/web/app/{{ . }}"
|
||||
subPath: "{{ . }}"
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- else }}
|
||||
{{- if .Values.storage.cloud.active }}
|
||||
{{- range .Values.storage.folders }}
|
||||
{{- if or ( eq . "certificates" ) ( eq . "secrets" ) }}
|
||||
- name: cloud
|
||||
mountPath: "/app/{{ . }}"
|
||||
subPath: "{{ . }}"
|
||||
{{- else }}
|
||||
- name: cloud
|
||||
mountPath: "/app/web/app/{{ . }}"
|
||||
subPath: "{{ . }}"
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
@@ -181,4 +193,4 @@ spec:
|
||||
ports:
|
||||
- containerPort: 8080
|
||||
name: http
|
||||
protocol: TCP
|
||||
protocol: TCP
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
#dev-newchart
|
||||
{{- if .Values.init.asJob }}
|
||||
apiVersion: batch/v1
|
||||
kind: Job
|
||||
@@ -93,16 +94,16 @@ spec:
|
||||
- name: serverconfig
|
||||
mountPath: /init-go/config.json
|
||||
subPath: init.json
|
||||
{{- if .Values.storage.cloud.active }}
|
||||
- name: cloud
|
||||
mountPath: "/mnt/cloud"
|
||||
{{- end }}
|
||||
{{- if .Values.storage.local.active }}
|
||||
{{- range .Values.storage.folders }}
|
||||
- name: local
|
||||
mountPath: "/app/web/app/{{ . }}"
|
||||
subPath: "{{ . }}"
|
||||
{{- end }}
|
||||
{{- if .Values.storage.cloud.active }}
|
||||
- name: cloud
|
||||
mountPath: "/mnt/cloud"
|
||||
{{- end }}
|
||||
{{- else }}
|
||||
{{- if .Values.storage.cloud.active }}
|
||||
{{- range .Values.storage.folders }}
|
||||
|
||||
Reference in New Issue
Block a user