fixed publish docker with tag
This commit is contained in:
parent
8e204af9a4
commit
e51acefbe3
1 changed files with 3 additions and 1 deletions
|
@ -84,6 +84,8 @@ class DevopsDockerBuild(DevopsBuild):
|
||||||
if(self.docker_publish_tag is not None):
|
if(self.docker_publish_tag is not None):
|
||||||
run('docker tag ' + self.name() + ' ' + self.dockerhub_user +
|
run('docker tag ' + self.name() + ' ' + self.dockerhub_user +
|
||||||
'/' + self.name() + ':' + self.docker_publish_tag, shell=True)
|
'/' + self.name() + ':' + self.docker_publish_tag, shell=True)
|
||||||
|
run('docker push ' + self.dockerhub_user +
|
||||||
|
'/' + self.name() + ':' + self.docker_publish_tag, shell=True)
|
||||||
else:
|
else:
|
||||||
run('docker tag ' + self.name() + ' ' + self.dockerhub_user +
|
run('docker tag ' + self.name() + ' ' + self.dockerhub_user +
|
||||||
'/' + self.name(), shell=True)
|
'/' + self.name(), shell=True)
|
||||||
|
|
Loading…
Reference in a new issue