about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorPascal Bach <pascal.bach@nextrem.ch>2022-10-12 07:56:46 +0200
committerGitHub <noreply@github.com>2022-10-12 07:56:46 +0200
commit1ca4c178dd4f3520e3be42e186dce71362f53aea (patch)
treeaed8b3c6d8d3d9a13c86e724af401081e4fb1716 /pkgs
parent93a795a555000c0e191efe943736c40acdab12ae (diff)
parentc8eae7a5261a0d2ceaf0ad8a8b08050ec5bf40f2 (diff)
Merge pull request #195488 from KoviRobi/gitlab-runner-clear-docker-cache
Gitlab runner clear docker cache
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/tools/continuous-integration/gitlab-runner/default.nix9
1 files changed, 8 insertions, 1 deletions
diff --git a/pkgs/development/tools/continuous-integration/gitlab-runner/default.nix b/pkgs/development/tools/continuous-integration/gitlab-runner/default.nix
index 0c2d18393390b..d55ea9ae52ab5 100644
--- a/pkgs/development/tools/continuous-integration/gitlab-runner/default.nix
+++ b/pkgs/development/tools/continuous-integration/gitlab-runner/default.nix
@@ -1,4 +1,4 @@
-{ lib, buildGoModule, fetchFromGitLab, fetchurl }:
+{ lib, buildGoModule, fetchFromGitLab, fetchurl, bash }:
 
 let
   version = "15.4.0";
@@ -14,6 +14,9 @@ buildGoModule rec {
     "-X ${commonPackagePath}.REVISION=v${version}"
   ];
 
+  # For patchShebangs
+  buildInputs = [ bash ];
+
   vendorSha256 = "sha256-S0x1b2ITtqMoqdssoTgnolDC6Tyq3IdkJqxwZ29qCyU=";
 
   src = fetchFromGitLab {
@@ -45,6 +48,10 @@ buildGoModule rec {
     rm helpers/docker/auth/auth_test.go
   '';
 
+  postInstall = ''
+    install packaging/root/usr/share/gitlab-runner/clear-docker-cache $out/bin
+  '';
+
   preCheck = ''
     # Make the tests pass outside of GitLab CI
     export CI=0