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