[infra] do not push docker images

This commit is contained in:
Mike Aizatsky 2016-07-25 13:17:37 -07:00
parent b339bee264
commit 3dcb9040c1
1 changed files with 1 additions and 13 deletions

View File

@ -24,16 +24,4 @@ node {
sh "docker build $dockerOptions --pull -t ossfuzz/base infra/base-images/base"
sh "docker build $dockerOptions -t ossfuzz/base-clang infra/base-images/base-clang"
sh "docker build $dockerOptions -t ossfuzz/base-libfuzzer infra/base-images/base-libfuzzer"
stage name: 'Push Docker Images', concurrency: 1
// login into docker
def username = readFile('/var/secrets/dockerhub-login/username')
def password = readFile('/var/secrets/dockerhub-login/password')
def email = readFile('/var/secrets/dockerhub-login/email')
// #! is important here to disable default -x.
sh "#!/bin/bash -e\ndocker info\ndocker version\ndocker login -u='${username}' -p='${password}' -e='${email}' https://index.docker.io/v1/"
sh "docker push ossfuzz/base"
sh "docker push ossfuzz/base-clang"
sh "docker push ossfuzz/base-libfuzzer"
}
}