Skip to content

Commit

Permalink
chore(ci): drone-cli (#1274)
Browse files Browse the repository at this point in the history
Drone has a CLI (https://github.com/drone/drone-cli) that handles compiling the
Jsonnet to a valid `drone.yml`.

This is more elegant than our previous `jsonnet | yq` dance.
  • Loading branch information
sh0rez authored Nov 26, 2019
1 parent 822e94f commit 8eced44
Show file tree
Hide file tree
Showing 3 changed files with 506 additions and 466 deletions.
8 changes: 2 additions & 6 deletions .drone/drone.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ local manifest(apps) = pipeline('manifest') {
],
};

local drone = [
[
pipeline('check') {
workspace: {
base: '/src',
Expand Down Expand Up @@ -166,8 +166,4 @@ local drone = [
},
],
},
];

{
drone: std.manifestYamlStream(drone),
}
]
Loading

0 comments on commit 8eced44

Please sign in to comment.