CI: Explicit registry credentials
All checks were successful
gitea/ansible-roles/pipeline/head This commit looks good
All checks were successful
gitea/ansible-roles/pipeline/head This commit looks good
This commit is contained in:
parent
9aa043d1ab
commit
7e21b13d6a
|
@ -21,12 +21,14 @@ 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()
|
||||||
|
docker.withRegistry('', 'hub.docker') {
|
||||||
im.push(major)
|
im.push(major)
|
||||||
im.push(minor)
|
im.push(minor)
|
||||||
im.push(patch)
|
im.push(patch)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
stage('Build latest docker image') {
|
stage('Build latest docker image') {
|
||||||
when {
|
when {
|
||||||
|
@ -38,9 +40,11 @@ pipeline {
|
||||||
im.inside {
|
im.inside {
|
||||||
sh 'echo Test needed'
|
sh 'echo Test needed'
|
||||||
}
|
}
|
||||||
|
docker.withRegistry('', 'hub.docker') {
|
||||||
im.push('latest')
|
im.push('latest')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue