fix tag latest
This commit is contained in:
parent
6731ca24a9
commit
b0a63e7bdb
1 changed files with 3 additions and 2 deletions
|
@ -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 ' +
|
||||||
|
|
Loading…
Reference in a new issue