1################################################################################ 2# 3# gitlab-runner 4# 5################################################################################ 6 7GITLAB_RUNNER_VERSION = 15.5.0 8GITLAB_RUNNER_SITE = https://gitlab.com/gitlab-org/gitlab-runner/-/archive/v$(GITLAB_RUNNER_VERSION) 9GITLAB_RUNNER_LICENSE = MIT 10GITLAB_RUNNER_LICENSE_FILES = LICENSE 11 12GITLAB_RUNNER_LDFLAGS = \ 13 -X gitlab.com/gitlab-org/gitlab-runner/common.VERSION=$(GITLAB_RUNNER_VERSION) 14 15define GITLAB_RUNNER_USERS 16 gitlab-runner -1 gitlab-runner -1 * /var/lib/gitlab-runner /bin/false - Gitlab Runner 17endef 18 19define GITLAB_RUNNER_INSTALL_INIT_SYSV 20 $(INSTALL) -m 0755 -D package/gitlab-runner/S95gitlab-runner \ 21 $(TARGET_DIR)/etc/init.d/S95gitlab-runner 22endef 23 24define GITLAB_RUNNER_INSTALL_INIT_SYSTEMD 25 mkdir -p $(TARGET_DIR)/var/lib/gitlab-runner 26 $(INSTALL) -D -m 0644 package/gitlab-runner/gitlab-runner.service \ 27 $(TARGET_DIR)/usr/lib/systemd/system/gitlab-runner.service 28endef 29 30GITLAB_RUNNER_POST_INSTALL_TARGET_HOOKS += GITLAB_RUNNER_INSTALL_CONFIG 31 32$(eval $(golang-package)) 33