2020-11-15 12:28:54 +01:00
|
|
|
#
|
2021-03-22 15:53:30 +01:00
|
|
|
# Copyright (C) 2020-2021 CZ.NIC, z. s. p. o. (https://www.nic.cz/)
|
2020-11-15 12:28:54 +01:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=gitlab-runner
|
2021-10-10 10:58:58 +02:00
|
|
|
PKG_VERSION:=14.3.2
|
treewide: remove AUTORELEASE
Automatically compute and substitute current values for all
$(AUTORELEASE) instances as this feature is deprecated and shouldn't be
used.
The following temporary change was made to the core:
diff --git a/rules.mk b/rules.mk
index 57d7995d4fa8..f16367de87a8 100644
--- a/rules.mk
+++ b/rules.mk
@@ -429,7 +429,7 @@ endef
abi_version_str = $(subst -,,$(subst _,,$(subst .,,$(1))))
COMMITCOUNT = $(if $(DUMP),0,$(call commitcount))
-AUTORELEASE = $(if $(DUMP),0,$(call commitcount,1))
+AUTORELEASE = $(if $(DUMP),0,$(shell sed -i "s/\$$(AUTORELEASE)/$(call commitcount,1)/" $(CURDIR)/Makefile))
all:
FORCE: ;
And this command used to fix affected packages:
for i in $(cd feeds/packages; git grep -l PKG_RELEASE:=.*AUTORELEASE | \
sed 's^.*/\([^/]*\)/Makefile^\1^';);
do
make package/$i/download
done
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
2023-04-21 18:32:27 +02:00
|
|
|
PKG_RELEASE:=2
|
2020-11-15 12:28:54 +01:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-v$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=https://gitlab.com/gitlab-org/gitlab-runner/-/archive/v$(PKG_VERSION)
|
2021-10-10 10:58:58 +02:00
|
|
|
PKG_HASH:=f67aeae05349f5c612ea5d8772407237caf4da586c0365e3c7edceec6b853d8c
|
2020-11-15 12:28:54 +01:00
|
|
|
|
2021-07-08 15:32:31 +02:00
|
|
|
PKG_MAINTAINER:=Jan Pavlinec <jan.pavlinec1@gmail.com>
|
2020-11-15 12:28:54 +01:00
|
|
|
PKG_LICENSE:=MIT
|
|
|
|
PKG_LICENSE_FILES:=LICENSE
|
|
|
|
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/gitlab-runner-v$(PKG_VERSION)
|
|
|
|
PKG_BUILD_DEPENDS:=golang/host
|
|
|
|
PKG_BUILD_PARALLEL:=1
|
2023-03-23 08:39:01 +01:00
|
|
|
PKG_BUILD_FLAGS:=no-mips16
|
2020-11-15 12:28:54 +01:00
|
|
|
GO_PKG:=gitlab.com/gitlab-org/gitlab-runner
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
include ../../lang/golang/golang-package.mk
|
|
|
|
|
|
|
|
define Package/gitlab-runner
|
|
|
|
SECTION:=devel
|
|
|
|
CATEGORY:=Development
|
|
|
|
TITLE:=Runner for CI/CD
|
|
|
|
URL:=https://docs.gitlab.com/runner
|
2021-01-19 05:16:13 +01:00
|
|
|
DEPENDS:=$(GO_ARCH_DEPENDS)
|
2020-11-15 12:28:54 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/gitlab-runner/description
|
|
|
|
GitLab Runner is an application that works with
|
|
|
|
GitLab CI/CD to run jobs in a pipeline.
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call GoBinPackage,gitlab-runner))
|
|
|
|
$(eval $(call BuildPackage,gitlab-runner))
|