From a5cc88b548768e30ea60c5d27492180df1c9b9e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charlotte=20=F0=9F=A6=9D=20Delenk?= Date: Sun, 25 Sep 2022 19:42:38 +0100 Subject: [PATCH] add updater to drone-runner-docker --- ci/drone-runner-docker/default.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ci/drone-runner-docker/default.nix b/ci/drone-runner-docker/default.nix index c388332..1979ae9 100644 --- a/ci/drone-runner-docker/default.nix +++ b/ci/drone-runner-docker/default.nix @@ -9,7 +9,7 @@ inherit (source) rev sha256; }; in - buildGoModule { + buildGoModule rec { pname = "drone-runner-docker"; version = source.date; inherit src; @@ -33,4 +33,9 @@ in } ]; }; + passthru.updateScript = writeScript "update-matrix-media-repo" '' + ${../../scripts/update-git.sh} "https://github.com/drone-runners/drone-runner-docker" ci/drone-runner-docker/source.json + SRC_PATH=$(nix-build -E '(import ./. {}).${pname}.src') + ${../../scripts/update-go.sh} ./ci/drone-runner-docker ci/drone-runner-docker/goVendor.hash + ''; }