Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
app
Manage
Activity
Members
Labels
Plan
Issues
18
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Car App
app
Commits
9c4734d8
Commit
9c4734d8
authored
11 months ago
by
Andri Joos
Browse files
Options
Downloads
Patches
Plain Diff
add version variable
parent
8fa1009b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!12
Resolve "Publish to fdroid repository"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+6
-3
6 additions, 3 deletions
.gitlab-ci.yml
with
6 additions
and
3 deletions
.gitlab-ci.yml
+
6
−
3
View file @
9c4734d8
stages
:
-
build
variables
:
APPLICATION_VERSION
:
"
1.0.0"
android_build
:
stage
:
build
image
:
...
...
@@ -35,8 +38,8 @@ apks:
-
android_build
artifacts
:
paths
:
# individual apks to reduce artifact size
-
car-app_arm64_v8a_xhdpi.apk
-
car-app_x86_64_xhdpi.apk
-
car-app_
${APPLICATION_VERSION}_
arm64_v8a_xhdpi.apk
-
car-app_
${APPLICATION_VERSION}_
x86_64_xhdpi.apk
expire_in
:
1 day
script
:
-
apk add perl-file-rename --repository=http://dl-cdn.alpinelinux.org/alpine/edge/testing/
...
...
@@ -44,4 +47,4 @@ apks:
-
java -jar /app/bundletool.jar build-apks --bundle=car_app.aab --output=car_app.apks --ks=keystore.jks --ks-pass=pass:$SIGNING_STORE_PW --ks-key-alias=$SIGNING_KEY_ALIAS --key-pass=pass:$SIGNING_KEY_PW
-
unzip -q car_app.apks -d car_app_apks
-
mv car_app_apks/standalones/*.apk .
-
file-rename -v
'
s/standalone-(\w+).*$/car-app_$1.apk/
'
*.apk
-
file-rename -v
"
s/standalone-(\w+).*$/car-app_$
{APPLICATION_VERSION}_\$
1.apk/
"
*.apk
This diff is collapsed.
Click to expand it.
Preview
0%
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