This commit is contained in:
areeqakbr 2025-02-26 11:10:35 +07:00
parent 9448633a29
commit cba046cf66
1 changed files with 9 additions and 6 deletions

13
Jenkinsfile vendored
View File

@ -4,18 +4,15 @@ pipeline {
yaml '''
apiVersion: v1
kind: Pod
metadata:
name: my-pod
spec:
containers:
- name: kubectl
image: bitnami/kubectl:latest
command:
- cat
tty: true
volumes:
- name: docker-sock
hostPath:
path: /var/run/docker.sock
- name: docker
image: docker:latest
@ -25,6 +22,12 @@ spec:
volumeMounts:
- name: docker-sock
mountPath: /var/run/docker.sock
volumes:
- name: docker-sock
hostPath:
path: /var/run/docker.sock
'''
}
}