gitlab-elasticsearch-indexer: init at 4.3.5

This commit is contained in:
Alexander Sieg 2023-03-09 11:55:48 +01:00 committed by Yureka
parent 2c9efde7ff
commit f241d5fbd9
4 changed files with 38 additions and 1 deletions

View file

@ -9,6 +9,7 @@
"GITALY_SERVER_VERSION": "16.1.2",
"GITLAB_PAGES_VERSION": "16.1.2",
"GITLAB_SHELL_VERSION": "14.23.0",
"GITLAB_ELASTICSEARCH_INDEXER_VERSION": "4.3.5",
"GITLAB_WORKHORSE_VERSION": "16.1.2"
}
}

View file

@ -0,0 +1,24 @@
{ lib, buildGoModule, fetchFromGitLab, pkg-config, icu }:
buildGoModule rec {
pname = "gitlab-elasticsearch-indexer";
version = "4.3.5";
src = fetchFromGitLab {
owner = "gitlab-org";
repo = "gitlab-elasticsearch-indexer";
rev = "v${version}";
sha256 = "sha256-2idvN92H4Cc1W71gADrsuUl3+f2weAvL2MOP19NO/3I=";
};
vendorHash = "sha256-7LqzuBVYqpPI2thIJu4kQgCZGMlBlKI8L+j7AdUYrgQ=";
buildInputs = [ icu ];
nativeBuildInputs = [ pkg-config ];
meta = with lib; {
description = "Indexes Git repositories into Elasticsearch for GitLab.";
license = licenses.mit;
maintainers = with maintainers; [ xanderio yayayayaka ];
};
}

View file

@ -109,9 +109,9 @@ class GitLabRepo:
"GITALY_SERVER_VERSION",
"GITLAB_PAGES_VERSION",
"GITLAB_SHELL_VERSION",
"GITLAB_ELASTICSEARCH_INDEXER_VERSION",
]
}
passthru["GITLAB_WORKHORSE_VERSION"] = version
return dict(
@ -297,6 +297,14 @@ def update_gitlab_container_registry(rev: str, commit: bool):
)
@cli.command('update-gitlab-elasticsearch-indexer')
def update_gitlab_elasticsearch_indexer():
"""Update gitlab-elasticsearch-indexer"""
data = _get_data_json()
gitlab_elasticsearch_indexer_version = data['passthru']['GITLAB_ELASTICSEARCH_INDEXER_VERSION']
_call_nix_update('gitlab-elasticsearch-indexer', gitlab_elasticsearch_indexer_version)
@cli.command("update-all")
@click.option("--rev", default="latest", help="The rev to use (vX.Y.Z-ee), or 'latest'")
@click.option(
@ -317,6 +325,7 @@ def update_all(ctx, rev: str, commit: bool):
ctx.invoke(update_gitlab_pages)
ctx.invoke(update_gitlab_shell)
ctx.invoke(update_gitlab_workhorse)
ctx.invoke(update_gitlab_elasticsearch_indexer)
if commit:
commit_gitlab(
old_data_json["version"], new_data_json["version"], new_data_json["rev"]
@ -342,6 +351,7 @@ def commit_gitlab(old_version: str, new_version: str, new_rev: str) -> None:
"gitlab-pages",
"gitlab-shell",
"gitlab-workhorse",
"gitlab-elasticsearch-indexer",
],
cwd=GITLAB_DIR,
)

View file

@ -8137,6 +8137,8 @@ with pkgs;
gitlab-workhorse = callPackage ../applications/version-management/gitlab/gitlab-workhorse { };
gitlab-elasticsearch-indexer = callPackage ../applications/version-management/gitlab/gitlab-elasticsearch-indexer { };
gitleaks = callPackage ../tools/security/gitleaks { };
gitaly = callPackage ../applications/version-management/gitlab/gitaly {