diff options
| author | Weijia Wang <9713184+wegank@users.noreply.github.com> | 2023-05-26 21:14:45 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-05-26 21:14:45 +0300 |
| commit | 64ed370bfc1c08915b26cec8503cd4a492d81ef6 (patch) | |
| tree | fa68c6c00f785abebb564a674732d270f0a0f798 | |
| parent | Merge pull request #234180 from NixOS/backport-230818-to-release-23.05 (diff) | |
| parent | gitlab: Fix commit option in update.py (diff) | |
| download | nixpkgs-64ed370bfc1c08915b26cec8503cd4a492d81ef6.tar.gz | |
Merge pull request #234213 from NixOS/backport-234031-to-release-23.05
[Backport release-23.05] gitlab: 15.11.5 -> 15.11.6
5 files changed, 34 insertions, 27 deletions
diff --git a/pkgs/applications/version-management/gitlab/data.json b/pkgs/applications/version-management/gitlab/data.json index ce3a0f0b092e..038c87c64a34 100644 --- a/pkgs/applications/version-management/gitlab/data.json +++ b/pkgs/applications/version-management/gitlab/data.json @@ -1,14 +1,14 @@ { - "version": "15.11.5", - "repo_hash": "sha256-t0MpfRyKfdO/Z90SogurKOCKv9xunyQasftNZ2o1GAE=", + "version": "15.11.6", + "repo_hash": "sha256-qpYVYzxtMgWLXhMn+0TvDqRJOnerfc9OEU1Gs6Ys/Bc=", "yarn_hash": "02ipm7agjy3c75df76c00k3qq5gpw3d876f6x91xnwizswsv9agb", "owner": "gitlab-org", "repo": "gitlab", - "rev": "v15.11.5-ee", + "rev": "v15.11.6-ee", "passthru": { - "GITALY_SERVER_VERSION": "15.11.5", - "GITLAB_PAGES_VERSION": "15.11.5", + "GITALY_SERVER_VERSION": "15.11.6", + "GITLAB_PAGES_VERSION": "15.11.6", "GITLAB_SHELL_VERSION": "14.18.0", - "GITLAB_WORKHORSE_VERSION": "15.11.5" + "GITLAB_WORKHORSE_VERSION": "15.11.6" } } diff --git a/pkgs/applications/version-management/gitlab/gitaly/default.nix b/pkgs/applications/version-management/gitlab/gitaly/default.nix index 00959739092f..655604ee72c1 100644 --- a/pkgs/applications/version-management/gitlab/gitaly/default.nix +++ b/pkgs/applications/version-management/gitlab/gitaly/default.nix @@ -11,7 +11,7 @@ let gemdir = ./.; }; - version = "15.11.5"; + version = "15.11.6"; package_version = "v${lib.versions.major version}"; gitaly_package = "gitlab.com/gitlab-org/gitaly/${package_version}"; @@ -22,7 +22,7 @@ let owner = "gitlab-org"; repo = "gitaly"; rev = "v${version}"; - sha256 = "sha256-ITyA9QqaCq6w9UToTWzyq77Sfg+dqaWrL45d5yqmzm4="; + sha256 = "sha256-n56Jqgu64+pN4bcH/Sh8/+4StpTEY529a4yVozqtK5Y="; }; vendorSha256 = "sha256-gJelagGPogeCdJtRpj4RaYlqzZRhtU0EIhmj1aK4ZOk="; diff --git a/pkgs/applications/version-management/gitlab/gitlab-pages/default.nix b/pkgs/applications/version-management/gitlab/gitlab-pages/default.nix index 69e157f5ed5b..2cb0aa2a82b6 100644 --- a/pkgs/applications/version-management/gitlab/gitlab-pages/default.nix +++ b/pkgs/applications/version-management/gitlab/gitlab-pages/default.nix @@ -2,13 +2,13 @@ buildGoModule rec { pname = "gitlab-pages"; - version = "15.11.5"; + version = "15.11.6"; src = fetchFromGitLab { owner = "gitlab-org"; repo = "gitlab-pages"; rev = "v${version}"; - sha256 = "sha256-4B6n/HQ1R5QYHjVDf18WKH0ZkNip8k0OASoTXuci+/Y="; + sha256 = "sha256-Dl/NCsZCi5S9BKjtQzRg3mj8lzvIa4FMCqprLKXKlHw="; }; vendorHash = "sha256-s3HHoz9URACuVVhePQQFviTqlQU7vCLOjTJPBlus1Vo="; diff --git a/pkgs/applications/version-management/gitlab/gitlab-workhorse/default.nix b/pkgs/applications/version-management/gitlab/gitlab-workhorse/default.nix index a0f16c0c8a81..96362c489590 100644 --- a/pkgs/applications/version-management/gitlab/gitlab-workhorse/default.nix +++ b/pkgs/applications/version-management/gitlab/gitlab-workhorse/default.nix @@ -5,7 +5,7 @@ in buildGoModule rec { pname = "gitlab-workhorse"; - version = "15.11.5"; + version = "15.11.6"; src = fetchFromGitLab { owner = data.owner; diff --git a/pkgs/applications/version-management/gitlab/update.py b/pkgs/applications/version-management/gitlab/update.py index fa3d06b18ea4..b513b71b1bba 100755 --- a/pkgs/applications/version-management/gitlab/update.py +++ b/pkgs/applications/version-management/gitlab/update.py @@ -250,21 +250,19 @@ def update_gitlab_pages(): def get_container_registry_version() -> str: """Returns the version attribute of gitlab-container-registry""" - return str( - subprocess.check_output( - [ - "nix", - "--experimental-features", - "nix-command", - "eval", - "-f", - ".", - "--raw", - "gitlab-container-registry.version", - ], - cwd=NIXPKGS_PATH, - ) - ) + return subprocess.check_output( + [ + "nix", + "--experimental-features", + "nix-command", + "eval", + "-f", + ".", + "--raw", + "gitlab-container-registry.version", + ], + cwd=NIXPKGS_PATH, + ).decode("utf-8") @cli.command("update-gitlab-shell") @@ -287,16 +285,25 @@ def update_gitlab_workhorse(): @cli.command("update-gitlab-container-registry") @click.option("--rev", default="latest", help="The rev to use (vX.Y.Z-ee), or 'latest'") -def update_gitlab_container_registry(rev: str): +@click.option( + "--commit", is_flag=True, default=False, help="Commit the changes for you" +) +def update_gitlab_container_registry(rev: str, commit: bool): """Update gitlab-container-registry""" logger.info("Updading gitlab-container-registry") repo = GitLabRepo(repo="container-registry") + old_container_registry_version = get_container_registry_version() if rev == "latest": rev = next(filter(lambda x: not ("rc" in x or x.endswith("pre")), repo.tags)) version = repo.rev2version(rev) _call_nix_update("gitlab-container-registry", version) + if commit: + new_container_registry_version = get_container_registry_version() + commit_container_registry( + old_container_registry_version, new_container_registry_version + ) @cli.command("update-all") |
