fix tag latest

This commit is contained in:
jem 2021-07-01 21:32:15 +02:00
parent 6731ca24a9
commit b0a63e7bdb

View file

@ -86,9 +86,10 @@ class DevopsDockerBuild(DevopsBuild):
'/' + self.name() + ':' + self.docker_publish_tag, shell=True) '/' + self.name() + ':' + self.docker_publish_tag, shell=True)
run('docker push ' + self.dockerhub_user + run('docker push ' + self.dockerhub_user +
'/' + self.name() + ':' + self.docker_publish_tag, shell=True) '/' + self.name() + ':' + self.docker_publish_tag, shell=True)
run('docker tag ' + self.name() + ' ' + self.dockerhub_user +
'/' + self.name() + ':latest', shell=True)
run('docker push ' + self.dockerhub_user + run('docker push ' + self.dockerhub_user +
'/' + self.name(), shell=True) '/' + self.name() + ':latest', shell=True)
def test(self): def test(self):
run('docker build -t ' + self.name() + '-test ' + run('docker build -t ' + self.name() + '-test ' +