mirror of
https://github.com/mosip/inji-wallet.git
synced 2026-01-09 05:27:57 -05:00
[INJIMOB-990] add a job to set the client id and pass to reusable workflow (#1348)
* [INJIMOB-990] add a job to set the client id and pass to reusable workflow Signed-off-by: adityankannan-tw <adityan410pm@gmail.com> * [INJIMOB-990] refactor output github env variable Signed-off-by: adityankannan-tw <adityan410pm@gmail.com> --------- Signed-off-by: adityankannan-tw <adityan410pm@gmail.com> Co-authored-by: adityankannan-tw <adityan410pm@gmail.com>
This commit is contained in:
BIN
.github/keys/mosipgpgkey_pub.gpg
vendored
BIN
.github/keys/mosipgpgkey_pub.gpg
vendored
Binary file not shown.
BIN
.github/keys/mosipgpgkey_sec.gpg
vendored
BIN
.github/keys/mosipgpgkey_sec.gpg
vendored
Binary file not shown.
18
.github/scripts/set-google-clientid.sh
vendored
Executable file
18
.github/scripts/set-google-clientid.sh
vendored
Executable file
@@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
|
||||
flavor="$1"
|
||||
|
||||
if [[ "$flavor" == "residentapp" ]]; then
|
||||
echo "CLIENT_ID=INJI_GOOGLE_CLIENT_ID" >> $GITHUB_OUTPUT
|
||||
elif [[ "$flavor" == "collab" ]]; then
|
||||
echo "CLIENT_ID=COLLAB_ORG_KEY" >> $GITHUB_OUTPUT
|
||||
elif [[ "$flavor" == "synergy" ]]; then
|
||||
echo "CLIENT_ID=SYNERGY_ORG_KEY" >> $GITHUB_OUTPUT
|
||||
elif [[ "$flavor" == "inji" ]]; then
|
||||
echo "CLIENT_ID=INJI_ORG_KEY" >> $GITHUB_OUTPUT
|
||||
elif [[ "$flavor" == "mec" ]]; then
|
||||
echo "CLIENT_ID=MEC_ORG_KEY" >> $GITHUB_OUTPUT
|
||||
else
|
||||
echo "Error: Invalid flavor '$flavor'"
|
||||
exit 1
|
||||
fi
|
||||
16
.github/workflows/internal-build.yml
vendored
16
.github/workflows/internal-build.yml
vendored
@@ -81,8 +81,22 @@ on:
|
||||
- true
|
||||
|
||||
jobs:
|
||||
set-client-id:
|
||||
runs-on: ubuntu-latest
|
||||
outputs:
|
||||
CLIENT_ID: ${{ steps.client-id.outputs.CLIENT_ID }}
|
||||
steps:
|
||||
- name: Set Google client id
|
||||
id: client-id
|
||||
run:
|
||||
cd .github/scripts
|
||||
./set-google-clientid.sh "$INJI_FLAVOR"
|
||||
env:
|
||||
INJI_FLAVOR: ${{ github.event.inputs.injiFlavor }}
|
||||
|
||||
build-android:
|
||||
if: ${{ inputs.buildFor == 'Both[Android and IOS]' || inputs.buildFor == 'Android'}}
|
||||
needs: set-client-id
|
||||
uses: mosip/kattu/.github/workflows/android-publish.yml@master
|
||||
with:
|
||||
RELEASE: ${{ inputs.release }}
|
||||
@@ -105,7 +119,7 @@ jobs:
|
||||
RELEASE_KEYSTORE_PASSWORD: '${{ secrets.INJI_ANDROID_RELEASE_STOREPASS }}'
|
||||
INJI_ANDROID_PLAY_STORE_CONFIG_JSON: ${{ secrets.INJI_ANDROID_PLAY_STORE_CONFIG_JSON }}
|
||||
SLACK_WEBHOOK_URL: '${{ secrets.SLACK_WEBHOOK_INJI_TEAM }}'
|
||||
GOOGLE_ANDROID_CLIENT_ID: ${{secrets.INJI_GOOGLE_CLIENT_ID}}
|
||||
GOOGLE_ANDROID_CLIENT_ID: ${{ secrets[needs.set-client-id.outputs.CLIENT_ID] }}
|
||||
|
||||
build-android-beta:
|
||||
if: ${{ inputs.release == 'beta' && (inputs.buildFor == 'Both[Android and IOS]' || inputs.buildFor == 'Android') }}
|
||||
|
||||
Reference in New Issue
Block a user