add publish

This commit is contained in:
jem 2020-11-13 17:00:12 +01:00
parent 62dbe02a6f
commit e50b4761ff

View file

@ -16,8 +16,8 @@ class MyBuild(DevopsDockerBuild):
def initialize(project):
project.build_depends_on('ddadevops>=0.6.1')
stage = 'notused'
dockerhub_user = 'notused'
dockerhub_password = 'notused'
dockerhub_user = gopass_field_from_path('meissa/web/docker.com', 'login')
dockerhub_password = gopass_password_from_path('meissa/web/docker.com')
config = create_devops_docker_build_config(
stage, PROJECT_ROOT_PATH, MODULE, dockerhub_user, dockerhub_password)
build = MyBuild(project, config)
@ -38,3 +38,9 @@ def drun(project):
def test(project):
build = get_devops_build(project)
build.test()
@task
def publish(project):
build = get_devops_build(project)
build.dockerhub_login()
build.dockerhub_publish()