rsyncd-docker/Jenkinsfile
2025-11-05 13:39:17 +01:00

40 lines
804 B
Groovy

pipeline {
agent {
kubernetes {
yaml '''
apiVersion: v1
kind: Pod
metadata:
name: docker
labels:
name: docker
spec:
containers:
- name: dind
image: docker:24.0.0-rc.1-dind
securityContext:
privileged: true
volumeMounts:
- mountPath: "/home/jenkins/agent"
name: "workspace-volume"
readOnly: false
'''
retries 2
}
}
stages {
stage('Build Docker image') {
steps {
container('dind') {
sh 'docker build -t andreas/rsyncd .'
sh 'docker images'
}
}
}
stage('Tag Docker image') {
steps {
sh 'ls -la'
}
}
}
}