Files
dockerhub-autobuild/.drone.star
Christian Richter 394b0f277a
Some checks reported errors
continuous-integration/drone/pr Build was killed
test multiple push
Signed-off-by: Christian Richter <crichter@owncloud.com>
2022-05-12 10:41:49 +02:00

83 lines
2.3 KiB
Plaintext

def main(ctx):
return [
#stepPR("amd64"),
#stepPR("arm64"),
stepMergeMaster("amd64"),
#stepMergeMaster("arm64"),
]
def stepPR(arch):
return {
"kind": "pipeline",
"type": "docker",
"name": "docker-build-%s" % (arch),
"platform": {
"os": "linux",
"arch": arch,
},
"steps": [
{
"name": "build-image-%s" % (arch),
"image": "plugins/docker",
"settings": {
"dockerfile": "motsognir/Dockerfile",
"repo": "dragonchaser/motsognir",
"dry_run": "true",
"tag": "latest-%s" % (arch),
"username": {
"from_secret": "dockerhub-user"
},
"password": {
"from_secret": "dockerhub-password"
}
}
},
],
"trigger": {
"ref": [
"refs/pull/**",
],
},
}
def stepMergeMaster(arch):
return {
"kind": "pipeline",
"type": "docker",
"name": "docker-publish-%s" % (arch),
"platform": {
"os": "linux",
"arch": arch,
},
"steps": [
{
"name": "build-build-and-publish-image-%s" % (arch),
"image": "plugins/docker",
"settings": {
"dockerfile": "motsognir/Dockerfile",
"repo": "dragonchaser/motsognir",
"dry_run": "true",
"purge": "false",
"tag": "latest-%s" % (arch),
"volumes": {
"name": "dockersock",
"path": "/var/run/docker.sock"
},
"username": {
"from_secret": "dockerhub-userXXX"
},
"password": {
"from_secret": "dockerhub-passwordXXX"
}
}
},
],
"trigger": {
"ref": [
##"refs/heads/master",
"refs/pull/**",
],
},
}