Skip to content

Commit

Permalink
Set VERSION variable when not a tag commit
Browse files Browse the repository at this point in the history
  • Loading branch information
treydock committed Nov 9, 2024
1 parent 11c9a56 commit f124ff2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ stages:
- deploy

variables:
OOD_BUILD_REPO: '4.0'
GIT_STRATEGY: clone
GIT_DEPTH: 0
OOD_PACKAGING_DEBUG: 'true'
Expand Down Expand Up @@ -50,6 +51,8 @@ build:
# Re-enable once Gitlab instance using plugin to integrate with Github
# - if: '$CI_PIPELINE_SOURCE == "external_pull_request_event"'
- if: '$CI_COMMIT_BRANCH !~ /^(master|release_[0-9]\.[0-9])$/ && $CI_COMMIT_TAG == null'
variables:
VERSION: '$OOD_BUILD_REPO.0'
script:
- bundle exec rake package:build[$OOD_PACKAGING_DIST,$OOD_PACKAGING_ARCH]
parallel:
Expand Down

0 comments on commit f124ff2

Please sign in to comment.