This commit is contained in:
wat
2019-09-22 13:42:52 +02:00
parent c9d62aae47
commit 6ef7ffd7cf
+11 -10
View File
@@ -13,16 +13,17 @@ 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}" ]; - >
then; if [ "${PACKAGE_VERSION}" != "${LATEST_VERSION}" ];
git tag $PACKAGE_VERSION; then;
git status; git tag $PACKAGE_VERSION;
git push https://$GIT_USER:$GIT_PASSWORD@gitea.frontblock.me/fw-vendor/${DRONE_REPO_NAME}.git $PACKAGE_VERSION; git status;
else; git push https://$GIT_USER:$GIT_PASSWORD@gitea.frontblock.me/fw-vendor/${DRONE_REPO_NAME}.git $PACKAGE_VERSION;
echo 'Version '; else;
echo $LATEST_VERSION; echo 'Version ';
echo 'did not change. Don`t push tag to master'; echo $LATEST_VERSION;
fi echo 'did not change. Don`t push tag to master';
fi
environment: environment:
GIT_USER: GIT_USER: