mirror of
https://gitea.com/gitea/helm-actions.git
synced 2026-07-18 04:04:44 +00:00
Compare commits
1 Commits
8d7cc38973
...
8b9640610e
| Author | SHA1 | Date | |
|---|---|---|---|
| 8b9640610e |
@ -7,7 +7,7 @@ on:
|
|||||||
|
|
||||||
env:
|
env:
|
||||||
# renovate: datasource=docker depName=alpine/helm
|
# renovate: datasource=docker depName=alpine/helm
|
||||||
HELM_VERSION: "4.0.5"
|
HELM_VERSION: "4.0.4"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
generate-chart-publish:
|
generate-chart-publish:
|
||||||
|
|||||||
@ -15,7 +15,7 @@ env:
|
|||||||
jobs:
|
jobs:
|
||||||
check-and-test:
|
check-and-test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: alpine/helm:4.0.5
|
container: alpine/helm:4.0.4
|
||||||
steps:
|
steps:
|
||||||
- name: install tools
|
- name: install tools
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
@ -84,7 +84,7 @@ app.kubernetes.io/instance: {{ .Release.Name }}
|
|||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
{{- define "gitea.actions.local_root_url" -}}
|
{{- define "gitea.actions.local_root_url" -}}
|
||||||
{{- tpl .Values.giteaRootURL . -}}
|
{{- .Values.giteaRootURL -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
{{/*
|
{{/*
|
||||||
|
|||||||
@ -429,35 +429,3 @@ tests:
|
|||||||
content:
|
content:
|
||||||
mountPath: /mnt
|
mountPath: /mnt
|
||||||
name: my-dind-volume
|
name: my-dind-volume
|
||||||
- it: should interpret Gitea Root URL templating
|
|
||||||
template: templates/statefulset.yaml
|
|
||||||
set:
|
|
||||||
global:
|
|
||||||
gitea:
|
|
||||||
service:
|
|
||||||
name: "my-gitea-svc-http"
|
|
||||||
port: 3210
|
|
||||||
enabled: true
|
|
||||||
giteaRootURL: "http://{{ .Values.global.gitea.service.name }}:{{ .Values.global.gitea.service.port }}"
|
|
||||||
asserts:
|
|
||||||
- hasDocuments:
|
|
||||||
count: 1
|
|
||||||
- containsDocument:
|
|
||||||
kind: StatefulSet
|
|
||||||
apiVersion: apps/v1
|
|
||||||
name: gitea-unittests-actions-act-runner
|
|
||||||
- equal:
|
|
||||||
path: spec.template.spec.containers[0].env[1].name
|
|
||||||
value: "GITEA_INSTANCE_URL"
|
|
||||||
- equal:
|
|
||||||
path: spec.template.spec.containers[0].env[1].value
|
|
||||||
value: "http://my-gitea-svc-http:3210"
|
|
||||||
- equal:
|
|
||||||
path: spec.template.spec.initContainers[0].command[2]
|
|
||||||
value: |
|
|
||||||
echo 'Trying to reach Gitea on http://my-gitea-svc-http:3210'
|
|
||||||
until timeout 10 wget --no-check-certificate --spider http://my-gitea-svc-http:3210; do
|
|
||||||
sleep 3
|
|
||||||
echo "Trying again in 3 seconds..."
|
|
||||||
done
|
|
||||||
echo "Gitea has been reached!"
|
|
||||||
|
|||||||
Reference in New Issue
Block a user