Skip to content
Snippets Groups Projects
Commit 0fd27755 authored by Benoît Harrault's avatar Benoît Harrault
Browse files

Merge branch '12-add-jabber-notification-on-create-tag' into 'master'

Resolve "Add jabber notification on create tag"

Closes #12

See merge request !8
parents 8f999370 257e77fe
No related branches found
No related tags found
1 merge request!8Resolve "Add jabber notification on create tag"
Pipeline #1874 passed
...@@ -96,6 +96,7 @@ application:release: ...@@ -96,6 +96,7 @@ application:release:
dependencies: dependencies:
- android:build-release - android:build-release
script: script:
- apk --no-cache add curl
- 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 set-url 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}
...@@ -110,6 +111,7 @@ application:release: ...@@ -110,6 +111,7 @@ application:release:
else else
git tag -a "${TAG_NAME}" -m "Release ${VERSION_NAME} (${VERSION_CODE})" git tag -a "${TAG_NAME}" -m "Release ${VERSION_NAME} (${VERSION_CODE})"
git push origin "${TAG_NAME}" git push origin "${TAG_NAME}"
curl --silent -d "{\"token\": \"${JABBER_NOTIFICATION_TOKEN}\", \"message\": \"New tag for ${CI_PROJECT_PATH}: ${TAG_NAME}\"}" -H "Content-Type: application/json" -X POST ${JABBER_NOTIFICATION_URL}
fi fi
android:deploy: android:deploy:
......
...@@ -2,5 +2,5 @@ org.gradle.jvmargs=-Xmx1536M ...@@ -2,5 +2,5 @@ org.gradle.jvmargs=-Xmx1536M
android.enableR8=true android.enableR8=true
android.useAndroidX=true android.useAndroidX=true
android.enableJetifier=true android.enableJetifier=true
app.versionName=1.0.6 app.versionName=1.0.7
app.versionCode=7 app.versionCode=8
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment