gitlab-runner: 11.0.0 -> 11.1.0 (#44085)
This commit is contained in:
parent
c735294fba
commit
41efb9a6c8
1 changed files with 11 additions and 26 deletions
|
@ -1,16 +1,16 @@
|
|||
{ lib, buildGoPackage, fetchFromGitLab, fetchurl, go-bindata }:
|
||||
{ lib, buildGoPackage, fetchFromGitLab, fetchurl }:
|
||||
|
||||
let
|
||||
version = "11.0.0";
|
||||
version = "11.1.0";
|
||||
# Gitlab runner embeds some docker images these are prebuilt for arm and x86_64
|
||||
docker_x86_64 = fetchurl {
|
||||
url = "https://gitlab-runner-downloads.s3.amazonaws.com/v${version}/docker/prebuilt-x86_64.tar.xz";
|
||||
sha256 = "1wi2wza991hhys60c8f3rhad8dqargnb6i7xwfsxrjd26dsbif2b";
|
||||
url = "https://gitlab-runner-downloads.s3.amazonaws.com/v${version}/helper-images/prebuilt-x86_64.tar.xz";
|
||||
sha256 = "0l7j69isnp6wlix3ysjxcr9dgcx5a0j9z2k0bsl714ff339js6j5";
|
||||
};
|
||||
|
||||
docker_arm = fetchurl {
|
||||
url = "https://gitlab-runner-downloads.s3.amazonaws.com/v${version}/docker/prebuilt-arm.tar.xz";
|
||||
sha256 = "1y67zxxad2jy1rvfhdlp194fi0qgwrnlcs24zh5lzwvsnwvc13bg";
|
||||
url = "https://gitlab-runner-downloads.s3.amazonaws.com/v${version}/helper-images/prebuilt-arm.tar.xz";
|
||||
sha256 = "16x9wbyd90jgyn7x45j9cyrdfz4hg8qav132schqrrdfrgjyrb4x";
|
||||
};
|
||||
in
|
||||
buildGoPackage rec {
|
||||
|
@ -29,31 +29,16 @@ buildGoPackage rec {
|
|||
owner = "gitlab-org";
|
||||
repo = "gitlab-runner";
|
||||
rev = "v${version}";
|
||||
sha256 = "06p8fggnxn2afy0k4wjh44d1qby9n2j0mq6cl206cckzh2gfsknp";
|
||||
sha256 = "0b632jnqbj74nx27nlpiia6nq8668gf41lcb4s24gw9jnfmrwhym";
|
||||
};
|
||||
|
||||
patches = [ ./fix-shell-path.patch ];
|
||||
|
||||
buildInputs = [ go-bindata ];
|
||||
|
||||
preBuild = ''
|
||||
(
|
||||
# go-bindata names the assets after the filename thus we create a symlink with the name we want
|
||||
cd go/src/${goPackagePath}
|
||||
ln -sf ${docker_x86_64} prebuilt-x86_64.tar.xz
|
||||
ln -sf ${docker_arm} prebuilt-arm.tar.xz
|
||||
go-bindata \
|
||||
-pkg docker \
|
||||
-nocompress \
|
||||
-nomemcopy \
|
||||
-o executors/docker/bindata.go \
|
||||
prebuilt-x86_64.tar.xz \
|
||||
prebuilt-arm.tar.xz
|
||||
)
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
install -d $out/bin
|
||||
touch $bin/bin/hello
|
||||
install -d $bin/bin/helper-images
|
||||
ln -sf ${docker_x86_64} $bin/bin/helper-images/prebuilt-x86_64.tar.xz
|
||||
ln -sf ${docker_arm} $bin/bin/helper-images/prebuilt-arm.tar.xz
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
|
|
Loading…
Reference in a new issue