fix docker tagging

This commit is contained in:
jem 2021-06-25 11:54:16 +02:00
parent f85e85805b
commit ff81729ddd

View file

@ -81,7 +81,7 @@ class DevopsDockerBuild(DevopsBuild):
' --password ' + self.dockerhub_password, shell=True) ' --password ' + self.dockerhub_password, shell=True)
def dockerhub_publish(self): def dockerhub_publish(self):
if(self.docker_publish_tag): 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)
else: else: