Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kaffeekasse
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jonas Broeckmann
Kaffeekasse
Commits
4a566100
Commit
4a566100
authored
1 year ago
by
Jonas Broeckmann
Browse files
Options
Downloads
Patches
Plain Diff
CI app version changes
parent
85b5520a
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+11
-7
11 additions, 7 deletions
.gitlab-ci.yml
with
11 additions
and
7 deletions
.gitlab-ci.yml
+
11
−
7
View file @
4a566100
...
...
@@ -11,6 +11,8 @@ image: eclipse-temurin:17-jdk-jammy
variables
:
APP_VERSION
:
"
1.0.0"
# ANDROID_COMPILE_SDK is the version of Android you're compiling with.
# It should match compileSdkVersion.
ANDROID_COMPILE_SDK
:
"
34"
...
...
@@ -112,19 +114,21 @@ createRelease:
-
job
:
assembleRelease
artifacts
:
true
rules
:
-
if
:
$CI_COMMIT_TAG
# Run this job when a tag is created
-
if
:
$CI_COMMIT_TAG
# Run this job when a tag is created
before_script
:
[]
script
:
-
echo "Creating a new release
$CI_COMMIT_TAG
"
-
cp app/build/outputs/apk/release/app-release.apk kaffeekasse.apk
-
echo "Creating a new release
for version $APP_VERSION
"
-
cp app/build/outputs/apk/release/app-release.apk kaffeekasse
-${CI_COMMIT_TAG}
.apk
artifacts
:
expire_in
:
never
paths
:
-
kaffeekasse.apk
release
:
# See https://docs.gitlab.com/ee/ci/yaml/#release for available properties
release
:
# See https://docs.gitlab.com/ee/ci/yaml/#release for available properties
tag_name
:
'
$CI_COMMIT_TAG'
description
:
'
$CI_COMMIT_TAG'
name
:
'
$APP_VERSION'
description
:
'
$APP_VERSION'
# TODO: Add meaningful description
assets
:
links
:
-
name
:
'
App
'
url
:
'
${CI_PROJECT_URL}/-/jobs/${CI_JOB_ID}/artifacts/raw/kaffeekasse.apk'
-
name
:
'
kaffeekasse-${APP_VERSION}.apk
'
url
:
'
${CI_PROJECT_URL}/-/jobs/${CI_JOB_ID}/artifacts/raw/kaffeekasse
-${APP_VERSION}
.apk'
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment