Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitlab-ci.yml17
-rw-r--r--Makefile1
2 files changed, 18 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index b1b143137..5c5da4506 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -438,6 +438,23 @@ secret_detection:
when: never
- *rules_should_test
+build-proto-gem:
+ needs: []
+ image: ruby:3.0
+ stage: publish
+ before_script: []
+ variables:
+ BUILD_GEM_OPTIONS: --skip-verify-tag
+ script:
+ - make build-proto-gem
+ rules:
+ - when: manual
+ allow_failure: true
+ artifacts:
+ paths:
+ - _build/gitaly.gem
+ expire_in: 1 month
+
publish-proto-gem:
needs: []
image: ruby:3.0
diff --git a/Makefile b/Makefile
index a75f6cd6e..f1ccd38b1 100644
--- a/Makefile
+++ b/Makefile
@@ -491,6 +491,7 @@ lint-proto: ${PROTOC} ${PROTOLINT} ${PROTOC_GEN_GITALY_LINT}
.PHONY: build-proto-gem
## Build the Ruby Gem that contains Gitaly's Protobuf definitons.
build-proto-gem:
+ ${Q}rm -rf "${BUILD_DIR}/gitaly.gem" && mkdir -p ${BUILD_DIR}
${Q}cd "${SOURCE_DIR}"/tools/protogem && bundle install
${Q}"${SOURCE_DIR}"/tools/protogem/build-proto-gem -o "${BUILD_DIR}/gitaly.gem" ${BUILD_GEM_OPTIONS}