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

15
Jenkinsfile vendored
View File

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