Push images to overleaf-ops

This commit is contained in:
Christopher Hoskin
2018-07-18 11:32:41 +01:00
parent 2b6032b249
commit 465dc31e75
2 changed files with 6 additions and 6 deletions

8
Jenkinsfile vendored
View File

@@ -51,11 +51,11 @@ pipeline {
stage('Package and publish build') {
steps {
withCredentials([file(credentialsId: 'gcr.io_cr-test2', variable: 'DOCKER_REPO_KEY_PATH')]) {
sh 'docker login -u _json_key --password-stdin https://gcr.io/cr-test2 < ${DOCKER_REPO_KEY_PATH}'
withCredentials([file(credentialsId: 'gcr.io_overleaf-ops', variable: 'DOCKER_REPO_KEY_PATH')]) {
sh 'docker login -u _json_key --password-stdin https://gcr.io/overleaf-ops < ${DOCKER_REPO_KEY_PATH}'
}
sh 'DOCKER_REPO=gcr.io/cr-test2 make publish'
sh 'docker logout https://gcr.io/cr-test2'
sh 'DOCKER_REPO=gcr.io/overleaf-ops make publish'
sh 'docker logout https://gcr.io/overleaf-ops'
}
}