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}"
- git config --global user.email "${DRONE_COMMIT_AUTHOR_EMAIL}"
- git config --global user.name "${DRONE_COMMIT_AUTHOR}"
- if [ "${PACKAGE_VERSION}" != "${LATEST_VERSION}" ];
then
git tag $PACKAGE_VERSION
git status
- if [ "${PACKAGE_VERSION}" != "${LATEST_VERSION}" ]; \
then \
git tag $PACKAGE_VERSION \
git status \
git push https://$GIT_USER:$GIT_PASSWORD@gitea.frontblock.me/fw-vendor/${DRONE_REPO_NAME}.git $PACKAGE_VERSION;
else
echo 'Version '
echo $LATEST_VERSION
echo 'Version ' \
echo $LATEST_VERSION \
echo 'did not change. Don`t push tag to master';
fi