Skip to content

Commit

Permalink
Merge pull request #4621 from fatalbanana/ci_improvements
Browse files Browse the repository at this point in the history
Minor improvements for CI
  • Loading branch information
vstakhov committed Sep 30, 2023
2 parents 5fd5976 + 23e831d commit 0e3808e
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 16 deletions.
20 changes: 11 additions & 9 deletions .drone.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@ local docker_pipeline = {
type: 'docker',
};

local default_trigger_events_ex_pr = [
'push',
'tag',
'custom',
];

local default_trigger = {
trigger: {
event: [
'push',
'tag',
'pull_request',
'custom',
],
event: default_trigger_events_ex_pr + ['pull_request'],
},
};

Expand All @@ -31,8 +32,8 @@ local coveralls_attribs = {
],
};

local coveralls_trigger = {
trigger: coveralls_attribs,
local close_coveralls_trigger = {
trigger: coveralls_attribs { status: ['success', 'failure'] },
};

local coveralls_when = {
Expand Down Expand Up @@ -66,6 +67,7 @@ local notify_pipeline = {
},
],
trigger: {
event: default_trigger_events_ex_pr,
status: [
'failure',
],
Expand Down Expand Up @@ -255,7 +257,7 @@ local close_coveralls = {
},
},
],
} + coveralls_trigger + docker_pipeline;
} + close_coveralls_trigger + docker_pipeline;

local noarch_pipeline = {
name: 'default-noarch',
Expand Down
23 changes: 16 additions & 7 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,8 @@
"event": [
"push",
"tag",
"pull_request",
"custom"
"custom",
"pull_request"
]
},
"type": "docker",
Expand Down Expand Up @@ -420,8 +420,8 @@
"event": [
"push",
"tag",
"pull_request",
"custom"
"custom",
"pull_request"
]
},
"type": "docker",
Expand Down Expand Up @@ -462,6 +462,10 @@
"event": [
"push",
"tag"
],
"status": [
"success",
"failure"
]
},
"type": "docker"
Expand Down Expand Up @@ -501,8 +505,8 @@
"event": [
"push",
"tag",
"pull_request",
"custom"
"custom",
"pull_request"
]
},
"type": "docker"
Expand Down Expand Up @@ -536,6 +540,11 @@
}
],
"trigger": {
"event": [
"push",
"tag",
"custom"
],
"status": [
"failure"
]
Expand All @@ -544,7 +553,7 @@
}
---
{
"hmac": "e6516adb52533ad1bfedc9ebca429c73cda213b08314d62195f713bb3588b22f",
"hmac": "3f01ceb14c7dd3ba2f5343fc52216843f72212e1cb25f944c2366d57e78d2b79",
"kind": "signature"
}
...

0 comments on commit 0e3808e

Please sign in to comment.