summary refs log tree commit diff
path: root/gnu
diff options
context:
space:
mode:
authorReza Alizadeh Majd <r.majd@pantherx.org>2019-12-31 15:48:59 +0000
committerMathieu Othacehe <m.othacehe@gmail.com>2019-12-31 17:06:59 +0100
commit365892e90fe352e5a366e48e9661c8c06bf80baa (patch)
tree734fb26b42aa9f34422b4fcd1a73e93923594c7d /gnu
parent8dd723f55b430cae19f339a3e4601b854ecce5b9 (diff)
downloadguix-365892e90fe352e5a366e48e9661c8c06bf80baa.tar.gz
gnu: Add gitlab-runner.
* gnu/packages/ci.scm (gitlab-runner): New variable.

Signed-off-by: Mathieu Othacehe <m.othacehe@gmail.com>
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/ci.scm27
1 files changed, 26 insertions, 1 deletions
diff --git a/gnu/packages/ci.scm b/gnu/packages/ci.scm
index b49ac0f7c1..31478988c6 100644
--- a/gnu/packages/ci.scm
+++ b/gnu/packages/ci.scm
@@ -5,6 +5,7 @@
 ;;; Copyright © 2017 Mathieu Othacehe <m.othacehe@gmail.com>
 ;;; Copyright © 2017, 2019 Ricardo Wurmus <rekado@elephly.net>
 ;;; Copyright © 2018 Clément Lassieur <clement@lassieur.org>
+;;; Copyright © 2019 Reza Alizadeh Majd <r.majd@pantherx.org>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -25,6 +26,7 @@
   #:use-module ((guix licenses) #:prefix l:)
   #:use-module (gnu packages)
   #:use-module (guix packages)
+  #:use-module (guix download)
   #:use-module (guix git-download)
   #:use-module (gnu packages autotools)
   #:use-module (gnu packages base)
@@ -44,7 +46,8 @@
   #:use-module (gnu packages version-control)
   #:use-module (gnu packages web)
   #:use-module (gnu packages xml)
-  #:use-module (guix build-system gnu))
+  #:use-module (guix build-system gnu)
+  #:use-module (guix build-system go))
 
 (define-public cuirass
   (let ((commit "e20ff86d97f7dd92dad140b5919e3cbdf2fb1ce6")
@@ -152,3 +155,25 @@
 intended as a replacement for Hydra.")
       (home-page "https://www.gnu.org/software/guix/")
       (license l:gpl3+))))
+
+(define-public gitlab-runner
+  (package
+    (name "gitlab-runner")
+    (version "12.6.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri
+        (string-append
+         "https://gitlab.com/gitlab-org/gitlab-runner/archive/v"
+         version "/gitlab-runner-v" version ".tar.gz"))
+       (sha256
+        (base32 "1gb3mflz57niyyn4kj5l4m1g2sa2w4cn8gig5dfr04ns9w9kj8jr"))))
+    (build-system go-build-system)
+    (arguments '(#:import-path "gitlab.com/gitlab-org/gitlab-runner"))
+    (home-page "https://docs.gitlab.com/runner/")
+    (synopsis "GitLab Runner")
+    (description "Gitlab Runner is used to run Gitlab's CI/CD jobs and send
+back the results to Gitlab instance.  It is used in conjunction with Gitlab
+CI.")
+    (license l:expat)))