Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
circles-android
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Circles
circles-android
Commits
ef6f04f1
Commit
ef6f04f1
authored
1 year ago
by
Taras
Browse files
Options
Downloads
Patches
Plain Diff
Move before script to separate jobs
parent
28c0ad1f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+15
-11
15 additions, 11 deletions
.gitlab-ci.yml
with
15 additions
and
11 deletions
.gitlab-ci.yml
+
15
−
11
View file @
ef6f04f1
default
:
image
:
softartdev/android-fastlane
cache
:
key
:
${CI_PROJECT_ID}
paths
:
-
.gradle/
before_script
:
-
bundle install
-
chmod +x ./gradlew
-
echo -n ${SIGNING_KEY_BASE64} | base64 -d > circuli_key.jks
-
echo "KEY_PATH=../circuli_key.jks" > signing.properties
-
echo "KEY_PASSWORD=${KEY_PASSWORD}" >> signing.properties
-
echo "ALIAS_NAME=${ALIAS_NAME}" >> signing.properties
stages
:
-
build
-
release
...
...
@@ -21,15 +11,22 @@ stages:
buildFdroid
:
stage
:
build
image
:
softartdev/android-fastlane
rules
:
-
if
:
$CI_COMMIT_TAG
script
:
-
bundle install
-
chmod +x ./gradlew
-
echo -n ${SIGNING_KEY_BASE64} | base64 -d > circuli_key.jks
-
echo "KEY_PATH=../circuli_key.jks" > signing.properties
-
echo "KEY_PASSWORD=${KEY_PASSWORD}" >> signing.properties
-
echo "ALIAS_NAME=${ALIAS_NAME}" >> signing.properties
-
echo "Building F-Droid apk"
-
bundle exec fastlane buildFdroid
artifacts
:
name
:
"
${CI_BUILD_NAME}_${CI_BUILD_REF_NAME}"
paths
:
-
app/build/outputs/apk/*.apk
-
app/build/outputs/apk/
fdroid/release/
*.apk
createGitlabRelease
:
stage
:
release
...
...
@@ -52,8 +49,15 @@ createGitlabRelease:
uploadPlayStoreBeta
:
stage
:
deploy
image
:
softartdev/android-fastlane
script
:
-
echo "Running the uploadPlayStoreBeta job"
-
bundle install
-
chmod +x ./gradlew
-
echo -n ${SIGNING_KEY_BASE64} | base64 -d > circuli_key.jks
-
echo "KEY_PATH=../circuli_key.jks" > signing.properties
-
echo "KEY_PASSWORD=${KEY_PASSWORD}" >> signing.properties
-
echo "ALIAS_NAME=${ALIAS_NAME}" >> signing.properties
-
echo ${GPLAY_API_KEY_JSON} > google_play_api_key.json
-
bundle exec fastlane deployGoogle
only
:
...
...
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