diff options
-rw-r--r-- | .gitlab-ci.yml | 17 | ||||
-rw-r--r-- | Makefile | 1 |
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 @@ -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} |