Add drone + build motsognir
Some checks reported errors
continuous-integration/drone/pr Build was killed

Signed-off-by: Christian Richter <crichter@owncloud.com>
This commit is contained in:
Christian Richter
2022-05-10 22:24:44 +02:00
parent 0e55852f7e
commit 236e5f831d
3 changed files with 27 additions and 24 deletions

View File

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

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 useradd -ms /bin/bash -d /gopher gopher
WORKDIR /gopher
COPY entrypoint.sh /
COPY rsyslog.conf /etc
COPY motsognir/entrypoint.sh /
COPY motsognir/rsyslog.conf /etc
ENTRYPOINT ["/entrypoint.sh"]