DockerHub user -> DockerHub org
This commit is contained in:
parent
5aa38dbd83
commit
d73b794f78
8
Jenkinsfile
vendored
8
Jenkinsfile
vendored
@ -39,7 +39,7 @@ pipeline {
|
||||
echo "Building ${env.SERVICE} docker image"
|
||||
|
||||
// Docker build flags are set via the getDockerBuildFlags() shared library.
|
||||
sh "docker build ${getDockerBuildFlags()} -t rbnops/auto-semver:${env.VERSION} ."
|
||||
sh "docker build ${getDockerBuildFlags()} -t rightbrainnetworks/auto-semver:${env.VERSION} ."
|
||||
|
||||
|
||||
sh "python setup.py sdist"
|
||||
@ -62,7 +62,7 @@ pipeline {
|
||||
withCredentials([usernamePassword(credentialsId: env.DOCKER_CREDENTIALS, usernameVariable: 'DOCKER_USERNAME', passwordVariable: 'DOCKER_PASSWORD')]) {
|
||||
sh("""
|
||||
docker login -u ${DOCKER_USERNAME} -p ${DOCKER_PASSWORD}
|
||||
docker push rbnops/auto-semver:${env.VERSION}
|
||||
docker push rightbrainnetworks/auto-semver:${env.VERSION}
|
||||
""")
|
||||
}
|
||||
|
||||
@ -95,8 +95,8 @@ pipeline {
|
||||
|
||||
// Update DockerHub latest tag
|
||||
sh("""
|
||||
docker tag rbnops/auto-semver:${env.VERSION} rbnops/auto-semver:latest
|
||||
docker push rbnops/auto-semver:latest
|
||||
docker tag rightbrainnetworks/auto-semver:${env.VERSION} rightbrainnetworks/auto-semver:latest
|
||||
docker push rightbrainnetworks/auto-semver:latest
|
||||
""")
|
||||
}
|
||||
post
|
||||
|
@ -164,4 +164,4 @@ pipeline
|
||||
|
||||
#### runAutoSemver( String _dockerImage_ )
|
||||
|
||||
**dockerImage:** The Docker image and tag to run auto-semver with. By default, it pulls `rbnops/auto-semver:latest`.
|
||||
**dockerImage:** The Docker image and tag to run auto-semver with. By default, it pulls `rightbrainnetworks/auto-semver:latest`.
|
@ -10,7 +10,7 @@
|
||||
*/
|
||||
|
||||
// Run Auto Semver
|
||||
def call(dockerImage = "auto-semver:latest") {
|
||||
def call(dockerImage = "rightbrainnetworks/auto-semver:latest") {
|
||||
|
||||
def docker_image = docker.image(dockerImage)
|
||||
docker_image.pull()
|
||||
|
Loading…
Reference in New Issue
Block a user