From 1e371c89126a6b1ae7001e983373bdc1ea95c735 Mon Sep 17 00:00:00 2001 From: Max Audron Date: Thu, 9 Jun 2022 17:32:02 +0200 Subject: add gitlab upload command --- flake.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/flake.nix b/flake.nix index 3018d7c..de34969 100644 --- a/flake.nix +++ b/flake.nix @@ -75,6 +75,10 @@ cargo = rust; rustc = rust; }; + + gitlab-upload = makeBinScript "gitlab-upload" '' + ${pkgs.curl} -f --header "PRIVATE-TOKEN: $GITLAB_API_TOKEN" --upload-file result/bin/gtree https://gitlab.com/api/v4/projects/${project_id}/packages/generic/${name}/${version}/$1 + ''; in rec { # `nix build` packages.gtreeStatic = naersk-lib.buildPackage { -- cgit v1.2.3