..
continuous-integration/drone/push Build was killed
Details
continuous-integration/drone/push Build was killed
Details
This commit is contained in:
parent
ff65f49f8e
commit
e8df1dd896
|
@ -19,9 +19,11 @@ def buildDockerFolder(
|
|||
],
|
||||
"environment": environment([
|
||||
"local-docker-registry",
|
||||
"registry-password",
|
||||
]),
|
||||
"commands": [
|
||||
"cd {folder}".format(folder=folder),
|
||||
"docker login $${{LOCAL_DOCKER_REGISTRY}} --username client --password '$${{REGISTRY_PASSWORD}}'",
|
||||
"sh build-docker-folder.sh {dockerFile} {image} {tag}".format(
|
||||
image = image,
|
||||
dockerFile = dockerFile,
|
||||
|
|
|
@ -14,9 +14,11 @@ def buildFolder(name, folder):
|
|||
],
|
||||
"environment": environment([
|
||||
"local-docker-registry",
|
||||
"registry-password",
|
||||
]),
|
||||
"commands": [
|
||||
"cd {folder}".format(folder=folder),
|
||||
"docker login $${{LOCAL_DOCKER_REGISTRY}} --username client --password '$${{REGISTRY_PASSWORD}}'",
|
||||
"sh build.sh {name} $${{LOCAL_DOCKER_REGISTRY}}".format(name = name),
|
||||
],
|
||||
}
|
||||
|
|
|
@ -12,9 +12,11 @@ def build(name):
|
|||
],
|
||||
"environment": environment([
|
||||
"local-docker-registry",
|
||||
"registry-password"
|
||||
]),
|
||||
"commands": [
|
||||
"cd {name}".format(name=name),
|
||||
"docker login $${{LOCAL_DOCKER_REGISTRY}} --username client --password '$${{REGISTRY_PASSWORD}}'",
|
||||
"docker build . -t $${{LOCAL_DOCKER_REGISTRY}}{name}".format(name=name),
|
||||
"docker push $${{LOCAL_DOCKER_REGISTRY}}{name}".format(name=name),
|
||||
],
|
||||
|
|
|
@ -30,6 +30,7 @@ def deploy(
|
|||
"export DRONE_COMMIT={commit}".format(commit=ctx.build.commit),
|
||||
"docker network prune -f",
|
||||
"cd {folder}".format(folder=folder),
|
||||
"docker login $${{LOCAL_DOCKER_REGISTRY}} --username client --password '$${{REGISTRY_PASSWORD}}'",
|
||||
"docker stack rm {name}".format(name = name),
|
||||
"sleep 30",
|
||||
"docker stack deploy -c {filename} {name}".format(name= name, filename = filename),
|
||||
|
|
Loading…
Reference in New Issue