gitlab-runner.mk 1.1 KB

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