Skip to content

Commit

Permalink
feat: replace stable version in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
vermorag committed Nov 27, 2024
1 parent e5ef638 commit 5c2f362
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,15 @@ build_tag:
- tags
before_script:
- export RELEASE_VERSION=$(echo "${CI_COMMIT_TAG}" | sed 's/v//')
- export STABLE_VERSION=$RELEASE_VERSION
- sed -i 's/dl-cdn.alpinelinux.org/repo.cdek.ru\/repository/g' /etc/apk/repositories
- apk add nodejs-current yarn
- curl -sS https://getcomposer.org/installer | php
- mv composer.phar /usr/local/bin/composer
- yarn set version berry
script:
- sed -i "s/\(Version:\)\( *\).*/\1\2${RELEASE_VERSION}/" cdek.php
- sed -i "s/\(Stable tag:\)\( *\).*/\1\2${RELEASE_VERSION}/" README.md
- sed -i "s/\(Stable tag:\)\( *\).*/\1\2${STABLE_VERSION}/" README.md
- sed -i "s/\(Project-Id-Version:\)\( *\).*/\1\2CDEKDelivery ${RELEASE_VERSION}\"/" lang/cdekdelivery.pot
- yarn
- yarn build
Expand Down Expand Up @@ -55,6 +56,7 @@ build_custom:
before_script:
- !reference [build_tag, before_script]
- export RELEASE_VERSION="${CI_COMMIT_REF_NAME}#${CI_COMMIT_SHORT_SHA}"
- export STABLE_VERSION=$(git describe --tags --abbrev=0 | sed 's/v//')
script:
- !reference [build_tag, script]

Expand Down

0 comments on commit 5c2f362

Please sign in to comment.