Compare commits

...

1 Commits

Author SHA1 Message Date
Christian Richter
ac5bad889e attempt 2
Some checks failed
continuous-integration/drone/pr Build is failing
Signed-off-by: Christian Richter <crichter@owncloud.com>
2022-05-11 17:18:04 +02:00
3 changed files with 23 additions and 26 deletions

View File

@@ -1,36 +1,32 @@
def main(ctx): def main(ctx):
return [ return [
step("amd64"), step("amd64"),
step("arm64"), #step("arm64"),
] ]
def step(arch): def step(arch):
return { return {
"kind": "pipeline", "kind": "pipeline",
"name": "build-%s" % arch, "type": "docker",
"name": "docker-%s" % (arch),
"platform": {
"os": "linux",
"arch": arch,
},
"steps": [ "steps": [
{ {
"name": "build", "name": "dryrun",
"image": "plugins/docker", "image": "plugins/docker",
"repo": "dragonchaser/motsognir", "settings": {
"volumes": [ "dockerfile": "motsognir/Dockerfile",
{ "repo": "dragonchaser/motsognir",
"name":"docker_sock", "tag": "latest-%s" % (arch)
"path":"/var/run/docker.sock" }
} },
],
"commands": [
"cd motsognir",
"docker build -t dragonchaser/motsognir:latest ."
]
}
], ],
"volumes": [ "trigger": {
{ "ref": [
"name":"docker_sock", "refs/pull/**",
"host": { ],
"path": "/var/run/docker.sock" },
}
}
]
} }

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.drone.yml

View File

@@ -14,6 +14,6 @@ RUN rm -Rfv /etc/apt/sources.list.*
RUN rm -Rfv /build RUN rm -Rfv /build
RUN useradd -ms /bin/bash -d /gopher gopher RUN useradd -ms /bin/bash -d /gopher gopher
WORKDIR /gopher WORKDIR /gopher
COPY entrypoint.sh / COPY motsognir/entrypoint.sh /
COPY rsyslog.conf /etc COPY motsognir/rsyslog.conf /etc
ENTRYPOINT ["/entrypoint.sh"] ENTRYPOINT ["/entrypoint.sh"]