forked from External/greenlight
GRN-37: Externalized scripts for building/deploying docker images though CI (#375)
This commit is contained in:
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
@ -63,14 +63,10 @@ volumes: [
|
||||
if (stageBuild) {
|
||||
sh "sed -i 's/VERSION =.*/VERSION = \"${gitBranch} (${gitCommit.substring(0, 7)})\"/g' config/initializers/version.rb"
|
||||
sh "gcloud docker -- build -t ${imageTag} -t 'bigbluebutton/${appName}:master' . && gcloud docker -- push ${imageTag}"
|
||||
sh "docker login -u $DOCKER_USER -p $DOCKER_PASSWORD"
|
||||
sh "docker push 'bigbluebutton/${appName}:master'"
|
||||
} else if (releaseBuild) {
|
||||
sh "sed -i 's/VERSION =.*/VERSION = \"${gitTag.substring(8)}\"/g' config/initializers/version.rb"
|
||||
imageTag = "gcr.io/${project}/${appName}:${gitTag}"
|
||||
sh "gcloud docker -- build -t ${imageTag} -t 'bigbluebutton/${appName}:${greenlightVersion}' -t 'bigbluebutton/${appName}:${gitTag}' . && gcloud docker -- push ${imageTag}"
|
||||
sh "docker login -u $DOCKER_USER -p $DOCKER_PASSWORD"
|
||||
sh "docker push 'bigbluebutton/${appName}:${greenlightVersion}' && docker push 'bigbluebutton/${appName}:${gitTag}'"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user