Commit e4be6cc2 authored by Raphael Defosseux's avatar Raphael Defosseux
Browse files

fix(ci): changing the Docker Hub account to push to


Signed-off-by: default avatarRaphael Defosseux <raphael.defosseux@openairinterface.org>
parent 8503e98e
Pipeline #30678 passed with stage
in 0 seconds
...@@ -50,6 +50,9 @@ def NEF_BASE_IMAGE_TAG = params.NefBaseImageTag ...@@ -50,6 +50,9 @@ def NEF_BASE_IMAGE_TAG = params.NefBaseImageTag
// Merge Request Link // Merge Request Link
def gitlabMergeRequestLink def gitlabMergeRequestLink
// Docker Hub account to push to
def DH_Account = "oaisoftwarealliance"
//------------------------------------------------------------------------------- //-------------------------------------------------------------------------------
// Pipeline start // Pipeline start
pipeline { pipeline {
...@@ -383,9 +386,9 @@ pipeline { ...@@ -383,9 +386,9 @@ pipeline {
[$class: 'UsernamePasswordMultiBinding', credentialsId: "${params.DockerHubCredentials}", usernameVariable: 'DH_Username', passwordVariable: 'DH_Password'] [$class: 'UsernamePasswordMultiBinding', credentialsId: "${params.DockerHubCredentials}", usernameVariable: 'DH_Username', passwordVariable: 'DH_Password']
]) { ]) {
myShCmd("echo ${DH_Password} | docker login --username ${DH_Username} --password-stdin", rem_u18_host_flag, rem_u18_host_user, rem_u18_host) myShCmd("echo ${DH_Password} | docker login --username ${DH_Username} --password-stdin", rem_u18_host_flag, rem_u18_host_user, rem_u18_host)
myShCmd("docker image tag oai-nef:develop ${DH_Username}/oai-nef:develop", rem_u18_host_flag, rem_u18_host_user, rem_u18_host) myShCmd("docker image tag oai-nef:develop ${DH_Account}/oai-nef:develop", rem_u18_host_flag, rem_u18_host_user, rem_u18_host)
myShCmd("docker push ${DH_Username}/oai-nef:develop", rem_u18_host_flag, rem_u18_host_user, rem_u18_host) myShCmd("docker push ${DH_Account}/oai-nef:develop", rem_u18_host_flag, rem_u18_host_user, rem_u18_host)
myShCmd("docker rmi ${DH_Username}/oai-nef:develop", rem_u18_host_flag, rem_u18_host_user, rem_u18_host) myShCmd("docker rmi ${DH_Account}/oai-nef:develop", rem_u18_host_flag, rem_u18_host_user, rem_u18_host)
myShCmd("docker logout", rem_u18_host_flag, rem_u18_host_user, rem_u18_host) myShCmd("docker logout", rem_u18_host_flag, rem_u18_host_user, rem_u18_host)
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment