Merge branch 'master' of github.com:DomainDrivenArchitecture/dda-devops-build
This commit is contained in:
commit
b9dda04265
1 changed files with 4 additions and 5 deletions
|
@ -84,12 +84,11 @@ 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)
|
||||||
else:
|
run('docker push ' + self.dockerhub_user +
|
||||||
run('docker tag ' + self.name() + ' ' + self.dockerhub_user +
|
'/' + self.name() + ':' + self.docker_publish_tag, shell=True)
|
||||||
'/' + self.name(), shell=True)
|
|
||||||
|
|
||||||
run('docker push ' + self.dockerhub_user +
|
run('docker push ' + self.dockerhub_user +
|
||||||
'/' + self.name(), shell=True)
|
'/' + self.name(), 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