CI: Explicit registry credentials
gitea/ansible-roles/pipeline/head This commit looks good Details

This commit is contained in:
David Prevot 2022-07-29 08:33:51 +02:00
parent 9aa043d1ab
commit 7e21b13d6a
1 changed files with 8 additions and 4 deletions

View File

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