.
continuous-integration/drone/push Build was killed
Details
continuous-integration/drone/push Build was killed
Details
This commit is contained in:
parent
9d4b012ae9
commit
345d8e503c
|
@ -0,0 +1,21 @@
|
||||||
|
load("@this//:environment.star", "environment")
|
||||||
|
|
||||||
|
def build(name):
|
||||||
|
return {
|
||||||
|
"name": "build-{name}".format(name=name),
|
||||||
|
"image": "docker:dind",
|
||||||
|
"volumes": [
|
||||||
|
{
|
||||||
|
"name": "dockersock",
|
||||||
|
"path": "/var/run",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
"environment": environment([
|
||||||
|
"local-docker-registry",
|
||||||
|
]),
|
||||||
|
"commands": [
|
||||||
|
"cd {name}".format(name=name),
|
||||||
|
"docker build . -t $${{LOCAL_DOCKER_REGISTRY}}{name}".format(name=name),
|
||||||
|
"docker push $${{LOCAL_DOCKER_REGISTRY}}{name}".format(name=name),
|
||||||
|
],
|
||||||
|
}
|
|
@ -0,0 +1,25 @@
|
||||||
|
def scp(target):
|
||||||
|
return {
|
||||||
|
"name": "scp files",
|
||||||
|
"image": "appleboy/drone-scp",
|
||||||
|
"settings": {
|
||||||
|
"host": {
|
||||||
|
"from_secret": "ssh-host",
|
||||||
|
},
|
||||||
|
"username": {
|
||||||
|
"from_secret": "ssh-user",
|
||||||
|
},
|
||||||
|
"password": {
|
||||||
|
"from_secret": "ssh-password",
|
||||||
|
},
|
||||||
|
"port": {
|
||||||
|
"from_secret": "ssh-port",
|
||||||
|
},
|
||||||
|
"command_timeout": "2m",
|
||||||
|
"target": target,
|
||||||
|
"source": [
|
||||||
|
".",
|
||||||
|
],
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
|
@ -0,0 +1,8 @@
|
||||||
|
def wait(delay, name):
|
||||||
|
return {
|
||||||
|
"name": name,
|
||||||
|
"image": "alpine",
|
||||||
|
"commands": [
|
||||||
|
"sleep {delay}".format(delay = delay),
|
||||||
|
],
|
||||||
|
}
|
Reference in New Issue