Compare commits
1 Commits
ab7dd97737
...
76350a8ce5
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
76350a8ce5 |
63
.drone.star
63
.drone.star
@@ -1,36 +1,59 @@
|
||||
def main(ctx):
|
||||
return [
|
||||
cancelPreviousBuilds(),
|
||||
step("amd64"),
|
||||
step("arm64"),
|
||||
]
|
||||
|
||||
def cancelPreviousBuilds():
|
||||
return [{
|
||||
"kind": "pipeline",
|
||||
"type": "docker",
|
||||
"name": "cancel-previous-builds",
|
||||
"clone": {
|
||||
"disable": True,
|
||||
},
|
||||
"steps": [{
|
||||
"name": "cancel-previous-builds",
|
||||
"image": "owncloudci/drone-cancel-previous-builds",
|
||||
"settings": {
|
||||
"DRONE_TOKEN": {
|
||||
"from_secret": "drone_token",
|
||||
},
|
||||
},
|
||||
}],
|
||||
"trigger": {
|
||||
"ref": [
|
||||
"refs/pull/**",
|
||||
],
|
||||
},
|
||||
}]
|
||||
|
||||
def step(arch):
|
||||
return {
|
||||
"kind": "pipeline",
|
||||
"name": "build-%s" % arch,
|
||||
"type": "docker",
|
||||
"name": "docker-%s" % (arch),
|
||||
"platform": {
|
||||
"os": "linux",
|
||||
"arch": arch,
|
||||
},
|
||||
"steps": [
|
||||
{
|
||||
"name": "build",
|
||||
"name": "dryrun",
|
||||
"image": "plugins/docker",
|
||||
"repo": "dragonchaser/motsognir",
|
||||
"volumes": [
|
||||
{
|
||||
"name":"docker_sock",
|
||||
"path":"/var/run/docker.sock"
|
||||
"settings": {
|
||||
"dockerfile": "motsognir/Dockerfile",
|
||||
"dry_run": "true",
|
||||
"purge":"true",
|
||||
"repo": "dragonchaser/dockerhub-autobuild",
|
||||
"tag": "latest"
|
||||
}
|
||||
},
|
||||
],
|
||||
"commands": [
|
||||
"cd motsognir",
|
||||
"docker build -t dragonchaser/motsognir:latest ."
|
||||
]
|
||||
}
|
||||
"trigger": {
|
||||
"ref": [
|
||||
"refs/pull/**",
|
||||
],
|
||||
"volumes": [
|
||||
{
|
||||
"name":"docker_sock",
|
||||
"host": {
|
||||
"path": "/var/run/docker.sock"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
}
|
||||
|
||||
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user