add publish
This commit is contained in:
parent
62dbe02a6f
commit
e50b4761ff
1 changed files with 8 additions and 2 deletions
|
@ -16,8 +16,8 @@ class MyBuild(DevopsDockerBuild):
|
||||||
def initialize(project):
|
def initialize(project):
|
||||||
project.build_depends_on('ddadevops>=0.6.1')
|
project.build_depends_on('ddadevops>=0.6.1')
|
||||||
stage = 'notused'
|
stage = 'notused'
|
||||||
dockerhub_user = 'notused'
|
dockerhub_user = gopass_field_from_path('meissa/web/docker.com', 'login')
|
||||||
dockerhub_password = 'notused'
|
dockerhub_password = gopass_password_from_path('meissa/web/docker.com')
|
||||||
config = create_devops_docker_build_config(
|
config = create_devops_docker_build_config(
|
||||||
stage, PROJECT_ROOT_PATH, MODULE, dockerhub_user, dockerhub_password)
|
stage, PROJECT_ROOT_PATH, MODULE, dockerhub_user, dockerhub_password)
|
||||||
build = MyBuild(project, config)
|
build = MyBuild(project, config)
|
||||||
|
@ -38,3 +38,9 @@ def drun(project):
|
||||||
def test(project):
|
def test(project):
|
||||||
build = get_devops_build(project)
|
build = get_devops_build(project)
|
||||||
build.test()
|
build.test()
|
||||||
|
|
||||||
|
@task
|
||||||
|
def publish(project):
|
||||||
|
build = get_devops_build(project)
|
||||||
|
build.dockerhub_login()
|
||||||
|
build.dockerhub_publish()
|
||||||
|
|
Loading…
Reference in a new issue