Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
org.benoitharrault.random
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
android
org.benoitharrault.random
Merge requests
!4
Resolve "Put release tag on build step"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
Resolve "Put release tag on build step"
7-put-release-tag-on-build-step
into
master
Overview
0
Commits
1
Pipelines
12
Changes
2
Merged
Resolve "Put release tag on build step"
Benoît Harrault
requested to merge
7-put-release-tag-on-build-step
into
master
Jun 24, 2021
Overview
0
Commits
1
Pipelines
12
Changes
1
Closes
#7 (closed)
Edited
Jun 24, 2021
by
Benoît Harrault
0
0
Merge request reports
Compare
version 7
version 10
b3713a9c
Jun 24, 2021
version 9
5067881f
Jun 24, 2021
version 8
ccf8682d
Jun 24, 2021
version 7
0bb7f103
Jun 24, 2021
version 6
7d9117da
Jun 24, 2021
version 5
cf56cafd
Jun 24, 2021
version 4
8c6efc3c
Jun 24, 2021
version 3
c8a2efa0
Jun 24, 2021
version 2
4603e964
Jun 24, 2021
version 1
c30df0c6
Jun 24, 2021
master (base)
and
version 8
latest version
b3713a9c
1 commit,
Jun 24, 2021
version 10
b3713a9c
1 commit,
Jun 24, 2021
version 9
5067881f
1 commit,
Jun 24, 2021
version 8
ccf8682d
1 commit,
Jun 24, 2021
version 7
0bb7f103
1 commit,
Jun 24, 2021
version 6
7d9117da
1 commit,
Jun 24, 2021
version 5
cf56cafd
1 commit,
Jun 24, 2021
version 4
8c6efc3c
1 commit,
Jun 24, 2021
version 3
c8a2efa0
1 commit,
Jun 24, 2021
version 2
4603e964
1 commit,
Jun 24, 2021
version 1
c30df0c6
1 commit,
Jun 24, 2021
Show latest version
1 file
+
2
−
3
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
.gitlab-ci.yml
+
2
−
3
View file @ ccf8682d
Edit in single-file editor
Open in Web IDE
Show full file
@@ -80,15 +80,14 @@ application:release:
script
:
-
git config user.email "${GITLAB_USER_EMAIL}"
-
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 set-url origin https://oauth2:${GITLAB_ACCESS_TOKEN}@${CI_SERVER_HOST}/${CI_PROJECT_PATH}
-
VERSION_FILE="$(find . -name 'gradle.properties' | head -n1)"
-
VERSION_NAME="$(grep '^app.versionName=' "${VERSION_FILE}" | cut -d'=' -f2)"
-
VERSION_CODE="$(grep '^app.versionCode=' "${VERSION_FILE}" | cut -d'=' -f2)"
-
TAG_NAME="Release_${VERSION_CODE}_${VERSION_NAME}"
-
echo "${TAG_NAME}"
-
git tag -a "Release_${TAG_NAME}" -m "Auto-Release ${VERSION_NAME} (${VERSION_CODE})"
-
git push
release-tag-
origin "Release_${TAG_NAME}"
-
git push origin "Release_${TAG_NAME}"
android:deploy
:
stage
:
deploy
Loading