This commit is contained in:
wat
2019-09-22 13:41:12 +02:00
parent 1093a9d1b2
commit b1261bec94
+6 -6
View File
@@ -13,14 +13,14 @@ steps:
- echo "${DRONE_BUILD_CREATED}" - echo "${DRONE_BUILD_CREATED}"
- git config --global user.email "${DRONE_COMMIT_AUTHOR_EMAIL}" - git config --global user.email "${DRONE_COMMIT_AUTHOR_EMAIL}"
- git config --global user.name "${DRONE_COMMIT_AUTHOR}" - git config --global user.name "${DRONE_COMMIT_AUTHOR}"
- if [ "${PACKAGE_VERSION}" != "${LATEST_VERSION}" ]; - if [ "${PACKAGE_VERSION}" != "${LATEST_VERSION}" ]; \
then then \
git tag $PACKAGE_VERSION git tag $PACKAGE_VERSION \
git status git status \
git push https://$GIT_USER:$GIT_PASSWORD@gitea.frontblock.me/fw-vendor/${DRONE_REPO_NAME}.git $PACKAGE_VERSION; git push https://$GIT_USER:$GIT_PASSWORD@gitea.frontblock.me/fw-vendor/${DRONE_REPO_NAME}.git $PACKAGE_VERSION;
else else
echo 'Version ' echo 'Version ' \
echo $LATEST_VERSION echo $LATEST_VERSION \
echo 'did not change. Don`t push tag to master'; echo 'did not change. Don`t push tag to master';
fi fi