aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2022-03-07 11:02:37 +0100
committerQuentin Dufour <quentin@deuxfleurs.fr>2022-03-07 11:02:37 +0100
commitb359601d2d20f2e4a9e171b4b064655eadfcbfe9 (patch)
tree98b0898e907b6ce68dbb72075179167e76f305ed
parent8ce62ddca130da91a167c1ecf9da203d14deb9e6 (diff)
downloadinfrastructure-b359601d2d20f2e4a9e171b4b064655eadfcbfe9.tar.gz
infrastructure-b359601d2d20f2e4a9e171b4b064655eadfcbfe9.zip
Documentation for Drone
-rw-r--r--app/drone-ci/integration/README.md16
1 files changed, 16 insertions, 0 deletions
diff --git a/app/drone-ci/integration/README.md b/app/drone-ci/integration/README.md
index 0509771..b3c1cc6 100644
--- a/app/drone-ci/integration/README.md
+++ b/app/drone-ci/integration/README.md
@@ -49,6 +49,22 @@ DRONE_NAME=lheureduthe DRONE_OWNER=quentin DRONE_SECRET=xxx docker-compose up -d
That's all folks.
+## Check if a given job is built by your runner
+
+```bash
+export URL=https://drone.deuxfleurs.fr
+export REPO=Deuxfleurs/garage
+export BUILD=1312
+curl ${URL}/api/repos/${REPO}/builds/${BUILD} \
+ | jq -c '[.stages[] | { name: .name, machine: .machine }]'
+```
+
+It will give you the following result:
+
+```json
+[{"name":"default","machine":"1686a"},{"name":"release-linux-x86_64","machine":"vimaire"},{"name":"release-linux-i686","machine":"carcajou"},{"name":"release-linux-aarch64","machine":"caribou"},{"name":"release-linux-armv6l","machine":"cariacou"},{"name":"refresh-release-page","machine":null}]
+```
+
## Random note
This setup is done mainly to allow nix builds with some cache.