mirror of
https://github.com/SamyRai/turash.git
synced 2025-12-26 23:01:33 +00:00
fix: Mount Docker config.json for persistent authentication
This commit is contained in:
parent
f4c4822fe1
commit
262c7b1f9c
@ -21,30 +21,13 @@ spec:
|
||||
env:
|
||||
- name: DOCKER_TLS_CERTDIR
|
||||
value: ""
|
||||
- name: DOCKER_HUB_USERNAME
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: docker-hub-credentials
|
||||
key: username
|
||||
- name: DOCKER_HUB_PASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: docker-hub-credentials
|
||||
key: password
|
||||
securityContext:
|
||||
privileged: true
|
||||
volumeMounts:
|
||||
- name: docker-graph-storage
|
||||
mountPath: /var/lib/docker
|
||||
lifecycle:
|
||||
postStart:
|
||||
exec:
|
||||
command:
|
||||
- /bin/sh
|
||||
- -c
|
||||
- |
|
||||
sleep 10
|
||||
docker login --username ${DOCKER_HUB_USERNAME} --password ${DOCKER_HUB_PASSWORD} || true
|
||||
- name: docker-config
|
||||
mountPath: /root/.docker
|
||||
- name: runner
|
||||
image: gitea/act_runner:latest
|
||||
env:
|
||||
@ -88,4 +71,7 @@ spec:
|
||||
- name: runner-config
|
||||
configMap:
|
||||
name: gitea-runner-config
|
||||
- name: docker-config
|
||||
configMap:
|
||||
name: docker-config
|
||||
dnsPolicy: ClusterFirst
|
||||
|
||||
Loading…
Reference in New Issue
Block a user