Skip to content

Commit

Permalink
#1267 | Gramin staging apk generation
Browse files Browse the repository at this point in the history
  • Loading branch information
1t5j0y authored and petmongrels committed Feb 1, 2024
1 parent 7430747 commit 00fe6c4
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 4 deletions.
10 changes: 7 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,11 @@ jobs:
path: packages/openchs-android/android/app/build/generated/sourcemaps/react/<< pipeline.parameters.flavor >>Release/index.android.bundle.map
destination: sourcemap-<< pipeline.parameters.flavor >>-staging-<< pipeline.git.revision >>.map

<<<<<<< HEAD
release_android_gramin_staging:
=======
release_android_rwb_staging:
>>>>>>> 48c92698 (#1267 | Gramin staging apk generation)
docker:
- image: cimg/android:2022.12-node
working_directory: ~/avni-client
Expand All @@ -132,8 +136,8 @@ jobs:
- v1-dependencies-
- run: sudo chmod a+x packages/openchs-android/android/gradlew
- run: sudo npm i -g react-native-cli
- run: make deps_ci release_gramin_staging_dev_without_clean
- run: make deploy_platform_translations_gramin_staging
- run: make deps_ci release_rwb_staging_dev_without_clean
- run: make deploy_platform_translations_rwb_staging
- save_cache:
key: v1-dependencies-{{ checksum "packages/openchs-android/android/app/build.gradle" }}-staging
paths:
Expand Down Expand Up @@ -333,7 +337,7 @@ workflows:
- /^dependabot.*/
requires:
- test_android
- release_android_gramin_staging:
- release_android_rwb_staging:
filters:
branches:
ignore:
Expand Down
15 changes: 14 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,13 @@ as_perf: ; $(call _create_config,perf)
as_prod: ; $(call _create_config,prod)
as_prod_dev: ; $(call _create_config,prod_dev)
as_no_env: ; $(call _create_config,no_env)
<<<<<<< HEAD
as_prod_lfe_dev: ; $(call _create_config,prod_lfe_dev)

=======
as_gramin_staging: ; $(call _create_config,gramin_staging)
as_gramin_staging_dev: ; $(call _create_config,gramin_staging_dev)
>>>>>>> 48c92698 (#1267 | Gramin staging apk generation)
release_clean: ## If you get dex errors
rm -rf packages/openchs-android/android/app/build
mkdir -p packages/openchs-android/android/app/build/generated
Expand Down Expand Up @@ -214,6 +219,14 @@ release_staging_dev_without_clean: as_staging_dev

release_staging: renew_env release_staging_without_clean

release_gramin_staging_without_clean: as_gramin_staging
enableSeparateBuildPerCPUArchitecture=false flavor=gramin make release

release_gramin_staging_dev_without_clean: as_gramin_staging_dev
enableSeparateBuildPerCPUArchitecture=false flavor=gramin make release

release_gramin_staging: renew_env release_gramin_staging_without_clean

release_uat_without_clean: as_uat
$(call _create_config,uat)
enableSeparateBuildPerCPUArchitecture=false make release
Expand Down Expand Up @@ -461,7 +474,7 @@ endif
deploy_platform_translations_staging:
make deploy_translations server=https://staging.avniproject.org port=443 username=admin password=$(OPENCHS_STAGING_ADMIN_PASSWORD)

deploy_platform_translations_gramin_staging:
deploy_platform_translations_rwb_staging:
make deploy_translations server=https://staging.rwb.avniproject.org port=443 username=admin password=$(RWB_STAGING_ADMIN_PASSWORD)

deploy_platform_translations_uat:
Expand Down
4 changes: 4 additions & 0 deletions packages/openchs-android/config/env/gramin_staging.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"SERVER_URL": "https://staging.rwb.avniproject.org",
"ENV": "rwb_staging"
}
4 changes: 4 additions & 0 deletions packages/openchs-android/config/env/gramin_staging_dev.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"SERVER_URL": "https://staging.rwb.avniproject.org",
"ENV": "ext-dev"
}

0 comments on commit 00fe6c4

Please sign in to comment.