fixed publish docker with tag

This commit is contained in:
bom 2021-06-25 12:44:24 +02:00
parent 8e204af9a4
commit e51acefbe3

View file

@ -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)