Compare commits
1 Commits
8dd97592ae
...
518cd8ed16
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
518cd8ed16 |
25
.drone.star
25
.drone.star
@@ -1,9 +1,34 @@
|
|||||||
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",
|
||||||
|
|||||||
Reference in New Issue
Block a user