.
continuous-integration/drone/push Build was killed
Details
continuous-integration/drone/push Build was killed
Details
This commit is contained in:
parent
55781975d0
commit
bc6c0eec67
|
@ -23,7 +23,7 @@ def buildDockerFolder(
|
|||
]),
|
||||
"commands": [
|
||||
"cd {folder}".format(folder=folder),
|
||||
"docker login $${LOCAL_DOCKER_REGISTRY} --username client --password '$${REGISTRY_PASSWORD}'",
|
||||
'docker login $${LOCAL_DOCKER_REGISTRY} --username client --password "$${REGISTRY_PASSWORD}"',
|
||||
"sh build-docker-folder.sh {dockerFile} {image} {tag}".format(
|
||||
image = image,
|
||||
dockerFile = dockerFile,
|
||||
|
|
|
@ -18,7 +18,7 @@ def buildFolder(name, folder):
|
|||
]),
|
||||
"commands": [
|
||||
"cd {folder}".format(folder=folder),
|
||||
"docker login $${LOCAL_DOCKER_REGISTRY} --username client --password '$${REGISTRY_PASSWORD}'",
|
||||
'docker login $${LOCAL_DOCKER_REGISTRY} --username client --password "$${REGISTRY_PASSWORD}"',
|
||||
"sh build.sh {name} $${{LOCAL_DOCKER_REGISTRY}}".format(name = name),
|
||||
],
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@ def build(name):
|
|||
]),
|
||||
"commands": [
|
||||
"cd {name}".format(name=name),
|
||||
"docker login $${LOCAL_DOCKER_REGISTRY} --username client --password '$${REGISTRY_PASSWORD}'",
|
||||
'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,7 +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 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),
|
||||
|
|
|
@ -7,7 +7,10 @@ def pull(
|
|||
name,
|
||||
images,
|
||||
):
|
||||
secrets = [ "local-docker-registry"]
|
||||
secrets = [
|
||||
"local-docker-registry",
|
||||
"registry-password",
|
||||
]
|
||||
return {
|
||||
"name": name,
|
||||
"image": "appleboy/drone-ssh",
|
||||
|
@ -22,7 +25,7 @@ def pull(
|
|||
"set -e"
|
||||
] +
|
||||
map(export, secrets) +
|
||||
["docker login $${LOCAL_DOCKER_REGISTRY} --username client --password '$${REGISTRY_PASSWORD}'"] +
|
||||
['docker login $${LOCAL_DOCKER_REGISTRY} --username client --password "$${REGISTRY_PASSWORD}"'] +
|
||||
["docker pull $${{LOCAL_DOCKER_REGISTRY}}{image}".format(image=image) for image in images ]
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue