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
12
.Jenkinsfile
12
.Jenkinsfile
|
@ -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')
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue