Compare commits
7 Commits
dev-newcha
...
e46e008941
| Author | SHA1 | Date | |
|---|---|---|---|
| e46e008941 | |||
| e5c2275912 | |||
| fbbff9d1f3 | |||
| 4a26a60ab8 | |||
| 8a217d5e65 | |||
| 931d43f1a4 | |||
| 8b85ba35fa |
@@ -4,9 +4,9 @@ on: [push]
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
Explore-Gitea-Actions:
|
Explore-Gitea-Actions:
|
||||||
runs-on: ubuntu-latest
|
runs-on: shell
|
||||||
env:
|
env:
|
||||||
HELM_CHART_VERSION: "1.0.34"
|
HELM_CHART_VERSION: "1.0.24"
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Set up Helm
|
- name: Set up Helm
|
||||||
@@ -15,9 +15,10 @@ jobs:
|
|||||||
version: 'v3.0.0'
|
version: 'v3.0.0'
|
||||||
- run: 'sed -i "s/version:.*/version: \"${HELM_CHART_VERSION}\"/" ./Chart/Chart.yaml'
|
- run: 'sed -i "s/version:.*/version: \"${HELM_CHART_VERSION}\"/" ./Chart/Chart.yaml'
|
||||||
- run: helm package ./Chart
|
- run: helm package ./Chart
|
||||||
|
- run: echo ${{ secrets.GITEA_TOKEN }} > /tmp/gitea-token
|
||||||
- name: Upload Helm Chart
|
- name: Upload Helm Chart
|
||||||
run: |
|
run: |
|
||||||
curl -ki -X POST \
|
curl --request POST \
|
||||||
--user ${{ secrets.HELM_PKG_UPLOAD_USER }}:${{ secrets.HELM_PKG_UPLOAD_PASS }} \
|
--user ${{ secrets.HELM_PKG_UPLOAD_USER }}:${{ secrets.HELM_PKG_UPLOAD_PASS }} \
|
||||||
--upload-file "wordyne-${HELM_CHART_VERSION}.tgz" \
|
--form "chart=@wordyne-${HELM_CHART_VERSION}.tgz" \
|
||||||
https://helm.cloudyne.io/api/charts
|
https://git.cloudyne.io/api/packages/helm/helm/api/charts
|
||||||
4
.gitignore
vendored
4
.gitignore
vendored
@@ -1,4 +1,2 @@
|
|||||||
example.yaml
|
example.yaml
|
||||||
example*.yaml
|
example*.yaml
|
||||||
example*.yml
|
|
||||||
test-*.yaml
|
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
variables:
|
variables:
|
||||||
HELM_CHART_VERSION: "1.0.24"
|
HELM_CHART_VERSION: "0.6.13"
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- deploy
|
- deploy
|
||||||
@@ -9,7 +9,9 @@ default:
|
|||||||
name: cloudyne/kubectl-helm:latest
|
name: cloudyne/kubectl-helm:latest
|
||||||
entrypoint: [""]
|
entrypoint: [""]
|
||||||
tags:
|
tags:
|
||||||
- shell
|
- build01
|
||||||
|
- helm
|
||||||
|
- chartbuild
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
|
|||||||
@@ -2,5 +2,5 @@ apiVersion: v2
|
|||||||
name: wordyne
|
name: wordyne
|
||||||
description: Helm chart for deploying pre-built website containers to kubernetes clusters
|
description: Helm chart for deploying pre-built website containers to kubernetes clusters
|
||||||
type: application
|
type: application
|
||||||
version: "1.0.27"
|
version: "1.0.24"
|
||||||
appVersion: "6.2.2"
|
appVersion: "6.2.2"
|
||||||
|
|||||||
@@ -99,16 +99,16 @@ spec:
|
|||||||
- name: serverconfig
|
- name: serverconfig
|
||||||
mountPath: /init-go/config.json
|
mountPath: /init-go/config.json
|
||||||
subPath: init.json
|
subPath: init.json
|
||||||
{{- if .Values.storage.cloud.active }}
|
|
||||||
- name: cloud
|
|
||||||
mountPath: "/mnt/cloud"
|
|
||||||
{{- end }}
|
|
||||||
{{- if .Values.storage.local.active }}
|
{{- if .Values.storage.local.active }}
|
||||||
{{- range .Values.storage.folders }}
|
{{- range .Values.storage.folders }}
|
||||||
- name: local
|
- name: local
|
||||||
mountPath: "/app/web/app/{{ . }}"
|
mountPath: "/app/web/app/{{ . }}"
|
||||||
subPath: "{{ . }}"
|
subPath: "{{ . }}"
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- if .Values.storage.cloud.active }}
|
||||||
|
- name: cloud
|
||||||
|
mountPath: "/mnt/cloud"
|
||||||
|
{{- end }}
|
||||||
{{- else }}
|
{{- else }}
|
||||||
{{- if .Values.storage.cloud.active }}
|
{{- if .Values.storage.cloud.active }}
|
||||||
{{- range .Values.storage.folders }}
|
{{- range .Values.storage.folders }}
|
||||||
@@ -145,34 +145,22 @@ spec:
|
|||||||
- name: serverconfig
|
- name: serverconfig
|
||||||
mountPath: /docker-entrypoint.d/unit.json
|
mountPath: /docker-entrypoint.d/unit.json
|
||||||
subPath: 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 }}
|
{{- if .Values.storage.cloud.active }}
|
||||||
- name: cloud
|
- name: cloud
|
||||||
mountPath: "/mnt/cloud"
|
mountPath: "/mnt/cloud"
|
||||||
{{- end }}
|
{{- 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 }}
|
{{- else }}
|
||||||
{{- if .Values.storage.cloud.active }}
|
{{- if .Values.storage.cloud.active }}
|
||||||
{{- range .Values.storage.folders }}
|
{{- range .Values.storage.folders }}
|
||||||
{{- if or ( eq . "certificates" ) ( eq . "secrets" ) }}
|
|
||||||
- name: cloud
|
|
||||||
mountPath: "/app/{{ . }}"
|
|
||||||
subPath: "{{ . }}"
|
|
||||||
{{- else }}
|
|
||||||
- name: cloud
|
- name: cloud
|
||||||
mountPath: "/app/web/app/{{ . }}"
|
mountPath: "/app/web/app/{{ . }}"
|
||||||
subPath: "{{ . }}"
|
subPath: "{{ . }}"
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
@@ -193,4 +181,4 @@ spec:
|
|||||||
ports:
|
ports:
|
||||||
- containerPort: 8080
|
- containerPort: 8080
|
||||||
name: http
|
name: http
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
@@ -1,4 +1,3 @@
|
|||||||
#dev-newchart
|
|
||||||
{{- if .Values.init.asJob }}
|
{{- if .Values.init.asJob }}
|
||||||
apiVersion: batch/v1
|
apiVersion: batch/v1
|
||||||
kind: Job
|
kind: Job
|
||||||
@@ -94,16 +93,16 @@ spec:
|
|||||||
- name: serverconfig
|
- name: serverconfig
|
||||||
mountPath: /init-go/config.json
|
mountPath: /init-go/config.json
|
||||||
subPath: init.json
|
subPath: init.json
|
||||||
{{- if .Values.storage.cloud.active }}
|
|
||||||
- name: cloud
|
|
||||||
mountPath: "/mnt/cloud"
|
|
||||||
{{- end }}
|
|
||||||
{{- if .Values.storage.local.active }}
|
{{- if .Values.storage.local.active }}
|
||||||
{{- range .Values.storage.folders }}
|
{{- range .Values.storage.folders }}
|
||||||
- name: local
|
- name: local
|
||||||
mountPath: "/app/web/app/{{ . }}"
|
mountPath: "/app/web/app/{{ . }}"
|
||||||
subPath: "{{ . }}"
|
subPath: "{{ . }}"
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- if .Values.storage.cloud.active }}
|
||||||
|
- name: cloud
|
||||||
|
mountPath: "/mnt/cloud"
|
||||||
|
{{- end }}
|
||||||
{{- else }}
|
{{- else }}
|
||||||
{{- if .Values.storage.cloud.active }}
|
{{- if .Values.storage.cloud.active }}
|
||||||
{{- range .Values.storage.folders }}
|
{{- range .Values.storage.folders }}
|
||||||
|
|||||||
Reference in New Issue
Block a user