From 77b20756375fb8d1ea98d29e2b6941819f390132 Mon Sep 17 00:00:00 2001 From: Christian Richter Date: Tue, 10 May 2022 22:24:44 +0200 Subject: [PATCH] attempt 2 Signed-off-by: Christian Richter --- .drone.star | 44 +++++++++++++++++++++----------------------- .gitignore | 1 + motsognir/Dockerfile | 4 ++-- 3 files changed, 24 insertions(+), 25 deletions(-) create mode 100644 .gitignore diff --git a/.drone.star b/.drone.star index 7f904d7..91c7864 100644 --- a/.drone.star +++ b/.drone.star @@ -7,30 +7,28 @@ 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" - } - ], - "commands": [ - "cd motsognir", - "docker build -t dragonchaser/motsognir:latest ." - ] - } + "name": "dryrun", + "image": "plugins/docker", + "settings": { + "dockerfile": "motsognir/Dockerfile", + "dry_run": "true", + "purge":"true", + "repo": "dragonchaser/dockerhub-autobuild", + "tag": "latest-%s" % (arch) + } + }, ], - "volumes": [ - { - "name":"docker_sock", - "host": { - "path": "/var/run/docker.sock" - } - } - ] + "trigger": { + "ref": [ + "refs/pull/**", + ], + }, } diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..eef18b7 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.drone.yml diff --git a/motsognir/Dockerfile b/motsognir/Dockerfile index 9ddd1bf..c384c4c 100644 --- a/motsognir/Dockerfile +++ b/motsognir/Dockerfile @@ -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"]