From b359601d2d20f2e4a9e171b4b064655eadfcbfe9 Mon Sep 17 00:00:00 2001 From: Quentin Dufour Date: Mon, 7 Mar 2022 11:02:37 +0100 Subject: Documentation for Drone --- app/drone-ci/integration/README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'app/drone-ci/integration/README.md') 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. -- cgit v1.2.3