aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Audron <audron@cocaine.farm>2022-06-09 17:32:02 +0200
committerMaximilian Manz <maximilian.manz@de.clara.net>2022-06-20 11:33:04 +0200
commit1e371c89126a6b1ae7001e983373bdc1ea95c735 (patch)
treeb748b338add0a1d0cd1e3baa620164f6ab14a199
parentprepare release 1.0.0 (diff)
add gitlab upload command
-rw-r--r--flake.nix4
1 files changed, 4 insertions, 0 deletions
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 {