Files
homepage/Jenkinsfile
T
Georgios Jason Efstathiou 32d5ac9dec
Gitea/homepage/pipeline/head There was a failure building this commit
try this
2024-12-22 20:06:11 +01:00

25 lines
397 B
Groovy

node {
def app
stage('Clone repository') {
checkout scm
}
stage('Build image') {
app = docker.build("brandonjones085/test")
}
stage('Test image') {
app.inside {
sh 'echo "Tests passed"'
}
}
stage('Push image') {
docker.withRegistry('https://registry.hub.docker.com', 'git') {
app.push("${env.BUILD_NUMBER}")
app.push("latest")
}
}
}