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,9 +21,11 @@ pipeline {
def major = versions[0] def major = versions[0]
def minor = versions[0] + '.' + versions[1] def minor = versions[0] + '.' + versions[1]
def patch = version.trim() def patch = version.trim()
im.push(major) docker.withRegistry('', 'hub.docker') {
im.push(minor) im.push(major)
im.push(patch) im.push(minor)
im.push(patch)
}
} }
} }
} }
@ -38,7 +40,9 @@ pipeline {
im.inside { im.inside {
sh 'echo Test needed' sh 'echo Test needed'
} }
im.push('latest') docker.withRegistry('', 'hub.docker') {
im.push('latest')
}
} }
} }
} }