Skip to content

Commit

Permalink
Revert "feat: replace stable version in ci"
Browse files Browse the repository at this point in the history
This reverts commit 5c2f362.
  • Loading branch information
vermorag committed Nov 27, 2024
1 parent 5c2f362 commit 18e765a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,14 @@ 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${STABLE_VERSION}/" README.md
- sed -i "s/\(Stable tag:\)\( *\).*/\1\2${RELEASE_VERSION}/" README.md
- sed -i "s/\(Project-Id-Version:\)\( *\).*/\1\2CDEKDelivery ${RELEASE_VERSION}\"/" lang/cdekdelivery.pot
- yarn
- yarn build
Expand Down Expand Up @@ -56,7 +55,6 @@ 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 18e765a

Please sign in to comment.