Skip to content
Snippets Groups Projects

Resolve "Put release tag on build step"

Merged Benoît Harrault requested to merge 7-put-release-tag-on-build-step into master
+ 1
0
@@ -80,6 +80,7 @@ application:release:
@@ -80,6 +80,7 @@ application:release:
script:
script:
- git config user.email "${GITLAB_USER_EMAIL}"
- git config user.email "${GITLAB_USER_EMAIL}"
- git config user.name "${GITLAB_USER_NAME}"
- git config user.name "${GITLAB_USER_NAME}"
 
- git remote remove origin
- git remote add release-tag-origin https://oauth2:${GITLAB_ACCESS_TOKEN}@${CI_SERVER_HOST}/${CI_PROJECT_PATH}
- git remote add release-tag-origin https://oauth2:${GITLAB_ACCESS_TOKEN}@${CI_SERVER_HOST}/${CI_PROJECT_PATH}
- VERSION_FILE="$(find . -name 'gradle.properties' | head -n1)"
- VERSION_FILE="$(find . -name 'gradle.properties' | head -n1)"
- VERSION_NAME="$(grep '^app.versionName=' "${VERSION_FILE}" | cut -d'=' -f2)"
- VERSION_NAME="$(grep '^app.versionName=' "${VERSION_FILE}" | cut -d'=' -f2)"
Loading