CI: Explicit registry credentials
All checks were successful
gitea/ansible-roles/pipeline/head This commit looks good

This commit is contained in:
David Prevot 2022-07-29 08:33:51 +02:00
parent 9aa043d1ab
commit 7e21b13d6a

View file

@ -21,12 +21,14 @@ pipeline {
def major = versions[0]
def minor = versions[0] + '.' + versions[1]
def patch = version.trim()
docker.withRegistry('', 'hub.docker') {
im.push(major)
im.push(minor)
im.push(patch)
}
}
}
}
stage('Build latest docker image') {
when {
@ -38,9 +40,11 @@ pipeline {
im.inside {
sh 'echo Test needed'
}
docker.withRegistry('', 'hub.docker') {
im.push('latest')
}
}
}
}
}
}