mirror of
https://gitea.com/gitea/helm-actions.git
synced 2025-10-22 15:38:21 +00:00
Compare commits
3 Commits
feat-inlin
...
update-run
Author | SHA1 | Date | |
---|---|---|---|
![]() |
30221a7b89 | ||
![]() |
c178f67344 | ||
![]() |
2a9d274dea |
@@ -10,10 +10,6 @@ metadata:
|
|||||||
data:
|
data:
|
||||||
config.yaml: |
|
config.yaml: |
|
||||||
{{- with .Values.statefulset.actRunner.config -}}
|
{{- with .Values.statefulset.actRunner.config -}}
|
||||||
{{- if kindIs "string" . -}}
|
|
||||||
{{ . | nindent 4}}
|
{{ . | nindent 4}}
|
||||||
{{- else -}}
|
|
||||||
{{ toYaml . | nindent 4}}
|
|
||||||
{{- end -}}
|
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
@@ -48,20 +48,6 @@ spec:
|
|||||||
image: "{{ .Values.statefulset.actRunner.repository }}:{{ .Values.statefulset.actRunner.tag }}"
|
image: "{{ .Values.statefulset.actRunner.repository }}:{{ .Values.statefulset.actRunner.tag }}"
|
||||||
imagePullPolicy: {{ .Values.statefulset.actRunner.pullPolicy }}
|
imagePullPolicy: {{ .Values.statefulset.actRunner.pullPolicy }}
|
||||||
workingDir: /data
|
workingDir: /data
|
||||||
command:
|
|
||||||
# The following is a workaround for: https://gitea.com/gitea/act_runner/issues/731
|
|
||||||
# We must add the docker-cli package for the server AND client cert verification.
|
|
||||||
- sh
|
|
||||||
- -c
|
|
||||||
- |
|
|
||||||
apk add --no-cache docker-cli
|
|
||||||
echo "Waiting for Docker daemon..."
|
|
||||||
until timeout 10 docker info > /dev/null; do
|
|
||||||
echo "Failed, retrying..."
|
|
||||||
sleep 2
|
|
||||||
done
|
|
||||||
echo "Docker is ready, starting act-runner..."
|
|
||||||
exec run.sh
|
|
||||||
env:
|
env:
|
||||||
- name: DOCKER_HOST
|
- name: DOCKER_HOST
|
||||||
value: tcp://127.0.0.1:2376
|
value: tcp://127.0.0.1:2376
|
||||||
|
@@ -42,27 +42,3 @@ tests:
|
|||||||
runner:
|
runner:
|
||||||
labels:
|
labels:
|
||||||
- "ubuntu-latest"
|
- "ubuntu-latest"
|
||||||
- it: renders a ConfigMap with inline yaml
|
|
||||||
template: templates/config-act-runner.yaml
|
|
||||||
set:
|
|
||||||
enabled: true
|
|
||||||
statefulset:
|
|
||||||
actRunner:
|
|
||||||
config:
|
|
||||||
container:
|
|
||||||
valid_volumes:
|
|
||||||
- /var/run/docker.sock
|
|
||||||
options: -v /var/run/docker.sock:/var/run/docker.sock
|
|
||||||
asserts:
|
|
||||||
- hasDocuments:
|
|
||||||
count: 1
|
|
||||||
- containsDocument:
|
|
||||||
kind: ConfigMap
|
|
||||||
apiVersion: v1
|
|
||||||
name: gitea-unittests-actions-act-runner-config
|
|
||||||
- matchRegex:
|
|
||||||
path: data["config.yaml"]
|
|
||||||
pattern: '(?m)^\s*options:\s*-v /var/run/docker.sock:/var/run/docker.sock\s*$'
|
|
||||||
- matchRegex:
|
|
||||||
path: data["config.yaml"]
|
|
||||||
pattern: '(?m)^\s*valid_volumes:\s*\n\s*-\s*/var/run/docker.sock\s*$'
|
|
||||||
|
Reference in New Issue
Block a user