2024-12-22 20:10:40 +01:00
|
|
|
pipeline {
|
|
|
|
|
agent any
|
2024-12-22 19:53:49 +01:00
|
|
|
|
2024-12-22 20:10:40 +01:00
|
|
|
stages {
|
|
|
|
|
stage('Clone repository') {
|
|
|
|
|
checkout scm
|
2024-12-22 20:06:11 +01:00
|
|
|
}
|
|
|
|
|
|
2024-12-22 20:10:40 +01:00
|
|
|
stage('Build image') {
|
|
|
|
|
app = docker.build("efstajas/homepage")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
stage('Push image') {
|
|
|
|
|
docker.withRegistry('https://registry.hub.docker.com', 'git') {
|
|
|
|
|
app.push("${env.BUILD_NUMBER}")
|
|
|
|
|
app.push("latest")
|
|
|
|
|
}
|
2024-12-22 19:53:49 +01:00
|
|
|
}
|
|
|
|
|
}
|
2024-12-22 19:58:51 +01:00
|
|
|
}
|