36
.drone.star
Normal file
36
.drone.star
Normal file
@@ -0,0 +1,36 @@
|
||||
def main(ctx):
|
||||
return [
|
||||
step("amd64"),
|
||||
step("arm64"),
|
||||
]
|
||||
|
||||
def step(arch):
|
||||
return {
|
||||
"kind": "pipeline",
|
||||
"name": "build-%s" % arch,
|
||||
"steps": [
|
||||
{
|
||||
"name": "build",
|
||||
"image": "plugins/docker",
|
||||
"repo": "dragonchaser/motsognir",
|
||||
"volumes": [
|
||||
{
|
||||
"name":"docker_sock",
|
||||
"path":"/var/run/docker.sock"
|
||||
}
|
||||
],
|
||||
"commands": [
|
||||
"cd motsognir",
|
||||
"docker build -t dragonchaser/motsognir:latest ."
|
||||
]
|
||||
}
|
||||
],
|
||||
"volumes": [
|
||||
{
|
||||
"name":"docker_sock",
|
||||
"host": {
|
||||
"path": "/var/run/docker.sock"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user