rsyncd-docker/Jenkinsfile
2025-11-05 13:50:16 +01:00

47 lines
1008 B
Groovy

pipeline {
agent {
kubernetes {
yaml '''
apiVersion: v1
kind: Pod
metadata:
name: docker
labels:
name: docker
spec:
containers:
- name: kaniko
image: gcr.io/kaniko-project/executor:debug
imagePullPolicy: Always
command:
- sleep
args:
- 9999999
- 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('kaniko') {
sh 'docker build -t andreas/rsyncd .'
sh 'docker images'
}
}
}
stage('Tag Docker image') {
steps {
sh 'ls -la'
}
}
}
}