From 3d70ca37908889dfe1170c50ad3a110be70b5a42 Mon Sep 17 00:00:00 2001 From: Gerald Pinder <4626052+gmpinder@users.noreply.github.com> Date: Sat, 4 Jan 2025 21:11:49 -0500 Subject: [PATCH] Install zellij --- .gitlab-ci.yml | 3 ++- files/scripts/install-zellij.nu | 12 ++++++++++++ recipes/common/dev-packages-bootc.yml | 1 + recipes/common/dev-packages.yml | 1 + 4 files changed, 16 insertions(+), 1 deletion(-) create mode 100755 files/scripts/install-zellij.nu diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0b51fbf..5e57d1d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -14,7 +14,8 @@ stages: build-image: stage: build interruptible: true - image: ghcr.io/blue-build/cli:main + # image: ghcr.io/blue-build/cli:main + image: ghcr.io/blue-build/cli:257-support-versioned-modules services: - docker:dind parallel: diff --git a/files/scripts/install-zellij.nu b/files/scripts/install-zellij.nu new file mode 100755 index 0000000..bedcec3 --- /dev/null +++ b/files/scripts/install-zellij.nu @@ -0,0 +1,12 @@ +#!/usr/bin/env nu + +let download_url = ( + (http get https://api.github.com/repos/zellij-org/zellij/releases | enumerate).0.item.assets + | find -c [name] "x86_64-unknown-linux-musl.tar.gz" +).browser_download_url.0 + +http get -r $download_url | save /tmp/zellij.tar.gz +tar -xvf /tmp/zellij.tar.gz +mv zellij /usr/bin/ +rm /tmp/zellij.tar.gz +zellij -V diff --git a/recipes/common/dev-packages-bootc.yml b/recipes/common/dev-packages-bootc.yml index 9f38a7d..eab3735 100644 --- a/recipes/common/dev-packages-bootc.yml +++ b/recipes/common/dev-packages-bootc.yml @@ -51,3 +51,4 @@ modules: scripts: - install-mkcert.sh - install-codelldb.sh + - install-zellij.nu diff --git a/recipes/common/dev-packages.yml b/recipes/common/dev-packages.yml index a7ec290..4333bdd 100644 --- a/recipes/common/dev-packages.yml +++ b/recipes/common/dev-packages.yml @@ -36,3 +36,4 @@ modules: scripts: - install-mkcert.sh - install-codelldb.sh + - install-zellij.nu