From 9f9e758f49110c2358a5e8a5c3567edf61b426ec Mon Sep 17 00:00:00 2001 From: Luca Date: Sun, 21 Jul 2024 22:32:38 +0200 Subject: [PATCH] ci: clone repository explicitly --- .drone.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.drone.yml b/.drone.yml index 72263df..22fe733 100644 --- a/.drone.yml +++ b/.drone.yml @@ -4,13 +4,23 @@ kind: pipeline type: docker name: default +clone: + disable: true + steps: + - name: clone + image: alpine/git + commands: + - git clone "$DRONE_GIT_HTTP_URL" . + - git checkout "$DRONE_COMMIT" + - name: build firmware for faderboard image: git.luj0ga.de/luca/docker-embedded-rust commands: - >- [ -z "$(git diff --name-only "$DRONE_COMMIT_BEFORE" "$DRONE_COMMIT_AFTER" | grep '^firmware/faderboard/')" ] && (echo "nothing to do" >&2; exit 0) + - cd firmware/faderboard - cargo build when: event: