Merge branch 'master' of github.com:DomainDrivenArchitecture/dda-devops-build

This commit is contained in:
jem 2021-06-25 17:18:37 +02:00
commit b9dda04265

View file

@ -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 ' +