Compare commits
1 Commits
76350a8ce5
...
ab7dd97737
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ab7dd97737 |
30
.drone.star
30
.drone.star
@@ -1,34 +1,9 @@
|
|||||||
def main(ctx):
|
def main(ctx):
|
||||||
return [
|
return [
|
||||||
cancelPreviousBuilds(),
|
|
||||||
step("amd64"),
|
step("amd64"),
|
||||||
step("arm64"),
|
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):
|
def step(arch):
|
||||||
return {
|
return {
|
||||||
"kind": "pipeline",
|
"kind": "pipeline",
|
||||||
@@ -51,9 +26,4 @@ def step(arch):
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
"trigger": {
|
|
||||||
"ref": [
|
|
||||||
"refs/pull/**",
|
|
||||||
],
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user