Skip to content

Commit

Permalink
Update Jenkinsfile
Browse files Browse the repository at this point in the history
  • Loading branch information
mateobur authored Mar 25, 2024
1 parent 99672b6 commit cb998e7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,13 @@ spec:
}
}
}
stage('Push Docker Image'){ // Pushes the images to the Container Registry
steps{
withCredentials([usernamePassword(credentialsId: 'gcr_rw_token', usernameVariable: 'username', passwordVariable: 'password')]) {
sh 'echo ${password} | docker login ${registry_url} -u ${username} --password-stdin'
sh 'docker push ${registry_url}/${registry_repo}/${docker_tag}'
}
}
}
}
}

0 comments on commit cb998e7

Please sign in to comment.