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
6120c3ff
Commit
6120c3ff
authored
1 year ago
by
Taras
Browse files
Options
Downloads
Patches
Plain Diff
Comment jobs
parent
25c5b984
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+57
-57
57 additions, 57 deletions
.gitlab-ci.yml
with
57 additions
and
57 deletions
.gitlab-ci.yml
+
57
−
57
View file @
6120c3ff
...
@@ -9,69 +9,69 @@ cache:
...
@@ -9,69 +9,69 @@ cache:
-
.gradle/
-
.gradle/
stages
:
stages
:
-
build
#
- build
-
release
#
- release
-
deploy
#
- deploy
-
message
-
message
before_script
:
#before_script:
-
chmod +x ./gradlew
# - chmod +x ./gradlew
-
echo -n ${SIGNING_KEY_BASE64} | base64 -d > circuli_key.jks
# - echo -n ${SIGNING_KEY_BASE64} | base64 -d > circuli_key.jks
-
echo "KEY_PATH=../circuli_key.jks" > signing.properties
# - echo "KEY_PATH=../circuli_key.jks" > signing.properties
-
echo "KEY_PASSWORD=${KEY_PASSWORD}" >> signing.properties
# - echo "KEY_PASSWORD=${KEY_PASSWORD}" >> signing.properties
-
echo "ALIAS_NAME=${ALIAS_NAME}" >> signing.properties
# - echo "ALIAS_NAME=${ALIAS_NAME}" >> signing.properties
#
#buildAndPushFdroid:
# image: softartdev/android-fastlane
# stage: build
# script:
# - echo "Building F-Droid apk"
# - ./gradlew clean
# - ./gradlew assembleFdroidRelease
# - apt-get update -qy && apt-get upgrade -qy
# - apt-get install -y git
# - git config --global user.email "taras@futo.org"
# - git config --global user.name "ci-bot"
# - echo "Push build to master"
# - git remote set-url origin https://gitlab-ci-token:${GITLAB_ACCESS_TOKEN}@gitlab.futo.org/circles/circles-android.git
# - git add -f app/build/outputs/apk/fdroid/release/circles-$CI_COMMIT_TAG-fdroid-release.apk
# - git mv app/build/outputs/apk/fdroid/release/circles-$CI_COMMIT_TAG-fdroid-release.apk .
# - git commit -m "Add F-Droid release apk $CI_COMMIT_TAG"
# - git push origin HEAD:main -o ci.skip
# - echo "Push build to fdroid repo"
# - cd ..
# - rm -rf circles-fdroid-repo
# - git clone https://gitlab-ci-token:${FDROID_REPO_GITLAB_ACCESS_TOKEN}@gitlab.futo.org/circles/circles-fdroid-repo.git
# - cp circles-android/circles-$CI_COMMIT_TAG-fdroid-release.apk circles-fdroid-repo/fdroid/repo
# - cd circles-fdroid-repo
# - git add -f fdroid/repo/circles-$CI_COMMIT_TAG-fdroid-release.apk
# - git commit -m "Add F-Droid release apk $CI_COMMIT_TAG"
# - git push origin HEAD:main
buildAndPushFdroid
:
#createGitlabRelease:
image
:
softartdev/android-fastlane
# stage: release
stage
:
build
# image: registry.gitlab.com/gitlab-org/release-cli:latest
script
:
# script:
-
echo "Building F-Droid apk"
# - echo "Running the release job"
-
./gradlew clean
# release:
-
./gradlew assembleFdroidRelease
# tag_name: $CI_COMMIT_TAG
-
apt-get update -qy && apt-get upgrade -qy
# name: 'Version $CI_COMMIT_TAG'
-
apt-get install -y git
# description: 'Release created using the release-cli.'
-
git config --global user.email "taras@futo.org"
# assets:
-
git config --global user.name "ci-bot"
# links:
-
echo "Push build to master"
# - name: 'F-Droid release apk $CI_COMMIT_TAG'
-
git remote set-url origin https://gitlab-ci-token:${GITLAB_ACCESS_TOKEN}@gitlab.futo.org/circles/circles-android.git
# url: 'https://gitlab.futo.org/circles/circles-android/-/raw/main/circles-$CI_COMMIT_TAG-fdroid-release.apk?ref_type=heads'
-
git add -f app/build/outputs/apk/fdroid/release/circles-$CI_COMMIT_TAG-fdroid-release.apk
-
git mv app/build/outputs/apk/fdroid/release/circles-$CI_COMMIT_TAG-fdroid-release.apk .
-
git commit -m "Add F-Droid release apk $CI_COMMIT_TAG"
-
git push origin HEAD:main -o ci.skip
-
echo "Push build to fdroid repo"
-
cd ..
-
rm -rf circles-fdroid-repo
-
git clone https://gitlab-ci-token:${FDROID_REPO_GITLAB_ACCESS_TOKEN}@gitlab.futo.org/circles/circles-fdroid-repo.git
-
cp circles-android/circles-$CI_COMMIT_TAG-fdroid-release.apk circles-fdroid-repo/fdroid/repo
-
cd circles-fdroid-repo
-
git add -f fdroid/repo/circles-$CI_COMMIT_TAG-fdroid-release.apk
-
git commit -m "Add F-Droid release apk $CI_COMMIT_TAG"
-
git push origin HEAD:main
createGitlabRelease
:
stage
:
release
image
:
registry.gitlab.com/gitlab-org/release-cli:latest
script
:
-
echo "Running the release job"
release
:
tag_name
:
$CI_COMMIT_TAG
name
:
'
Version
$CI_COMMIT_TAG'
description
:
'
Release
created
using
the
release-cli.'
assets
:
links
:
-
name
:
'
F-Droid
release
apk
$CI_COMMIT_TAG'
url
:
'
https://gitlab.futo.org/circles/circles-android/-/raw/main/circles-$CI_COMMIT_TAG-fdroid-release.apk?ref_type=heads'
uploadPlayStoreBeta
:
#
uploadPlayStoreBeta:
image
:
softartdev/android-fastlane
#
image: softartdev/android-fastlane
stage
:
deploy
#
stage: deploy
script
:
#
script:
-
echo "Running the uploadPlayStoreBeta job"
#
- echo "Running the uploadPlayStoreBeta job"
-
bundle install
#
- bundle install
-
echo ${GPLAY_API_KEY_JSON} > google_play_api_key.json
#
- echo ${GPLAY_API_KEY_JSON} > google_play_api_key.json
-
bundle exec fastlane deployGoogle
#
- bundle exec fastlane deployGoogle
sendZulipMessage
:
sendZulipMessage
:
stage
:
message
stage
:
message
...
...
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