add publish
This commit is contained in:
parent
6dd70837a6
commit
09ee1a48c5
2 changed files with 4 additions and 5 deletions
|
@ -16,4 +16,4 @@ before_script:
|
||||||
build:
|
build:
|
||||||
stage: build
|
stage: build
|
||||||
script:
|
script:
|
||||||
- cd infrastrucure/docker && pyb image test
|
- cd infrastrucure/docker && pyb image test publish
|
||||||
|
|
|
@ -1,10 +1,9 @@
|
||||||
from subprocess import run
|
|
||||||
from os import environ
|
from os import environ
|
||||||
from pybuilder.core import task, init
|
from pybuilder.core import task, init
|
||||||
from ddadevops import *
|
from ddadevops import *
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
name = 'meissa-cloud'
|
name = 'dda-backup'
|
||||||
MODULE = 'docker'
|
MODULE = 'docker'
|
||||||
PROJECT_ROOT_PATH = '../..'
|
PROJECT_ROOT_PATH = '../..'
|
||||||
|
|
||||||
|
@ -16,8 +15,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 = environ.get('DOCKERHUB_USER', None)
|
||||||
dockerhub_password = 'notused'
|
dockerhub_password = environ.get('DOCKERHUB_PASSWORD', None)
|
||||||
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)
|
||||||
|
|
Loading…
Reference in a new issue