This commit is contained in:
Stefan Schueller 2020-07-12 17:30:40 +02:00
parent 12819f2ad6
commit a33508e68f
2 changed files with 13 additions and 4 deletions

View File

@ -38,7 +38,8 @@ ensureContainer:
- docker manifest inspect $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG > /dev/null && exit || true
.build_job:
image: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
# image: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
image: opengamer/android-sdk-gradle-fastlane
stage: build
before_script:
# We store this binary file in a variable as hex with this command, `xxd -p thorium-android-app.jks`
@ -79,7 +80,8 @@ buildRelease:
name: production
testDebug:
image: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
# image: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
image: opengamer/android-sdk-gradle-fastlane
stage: test
dependencies:
- buildDebug
@ -87,7 +89,8 @@ testDebug:
- bundle exec fastlane test
publishInternal:
image: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
# image: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
image: opengamer/android-sdk-gradle-fastlane
stage: internal
dependencies:
- buildRelease
@ -100,7 +103,8 @@ publishInternal:
- bundle exec fastlane internal
.promote_job:
image: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
# image: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
image: opengamer/android-sdk-gradle-fastlane
when: manual
dependencies: []
before_script:

View File

@ -19,6 +19,11 @@ default_platform(:android)
platform :android do
desc "Builds the debug code"
lane :buildDebug do
gradle(task: "assembleDebug")
end
desc "Builds the release code"
lane :buildRelease do
gradle(task: "assembleRelease")