Skip to content

Commit 9bf6bf0

Browse files
authored
Merge pull request #214 from softwareone-platform/infra/add-log-level-env-variable
ci: add LOG_LEVEL environment variable to all workflows
2 parents baa9b53 + 3127034 commit 9bf6bf0

File tree

6 files changed

+29
-1
lines changed

6 files changed

+29
-1
lines changed

.github/TESTFLIGHT_SETUP.md

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,30 @@ REVIEWER_EMAILS # comma-separated list of reviewer email addresses
101101
REVIEW_ENV_AUTH0_CLIENT_ID
102102
```
103103

104-
**Total: 20 secrets/variables required**
104+
#### Logging Configuration (1 variable per environment)
105+
106+
**Variables (public):**
107+
```
108+
LOG_LEVEL # debug, info, warn, or error
109+
```
110+
111+
**Recommended values per environment:**
112+
113+
| Environment | `LOG_LEVEL` | Rationale |
114+
|-------------|-------------|-----------|
115+
| `test` | `info` | Standard logging |
116+
| `qa` | `info` | Standard logging |
117+
| `prod` | `info` | Standard logging |
118+
119+
> **Note:** Can be changed per environment to `debug`, `warn`, or `error` as needed. See `app/.env.example` for all options.
120+
121+
**Keeper Vault reference:**
122+
Store these values in the shared Keeper Vault under the mobile app's environment config:
123+
- `Keeper > Mobile App > test > LOG_LEVEL``info`
124+
- `Keeper > Mobile App > qa > LOG_LEVEL``info`
125+
- `Keeper > Mobile App > prod > LOG_LEVEL``info`
126+
127+
**Total: 21 secrets/variables required**
105128

106129
### 2. (Optional) Configure Environment Protection Rules
107130

.github/workflows/android-build-and-test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@ jobs:
186186
AUTH0_API_URL=https://api.s1.show/public/
187187
AUTH0_OTP_DIGITS=6
188188
AUTH0_SCHEME=com.softwareone.marketplaceMobile
189+
LOG_LEVEL=info
189190
TEMPORARY_AUTH0_TOKEN=
190191
EOF
191192

.github/workflows/android-build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ jobs:
6969
AUTH0_API_URL=https://api.s1.show/public/
7070
AUTH0_OTP_DIGITS=6
7171
AUTH0_SCHEME=com.softwareone.marketplaceMobile
72+
LOG_LEVEL=info
7273
TEMPORARY_AUTH0_TOKEN=
7374
EOF
7475

.github/workflows/ios-build-and-test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ jobs:
187187
AUTH0_API_URL=https://api.s1.show/public/
188188
AUTH0_OTP_DIGITS=6
189189
AUTH0_SCHEME=com.softwareone.marketplaceMobile
190+
LOG_LEVEL=info
190191
TEMPORARY_AUTH0_TOKEN=
191192
EOF
192193

.github/workflows/ios-build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ jobs:
9696
AUTH0_API_URL=https://api.s1.show/public/
9797
AUTH0_OTP_DIGITS=6
9898
AUTH0_SCHEME=com.softwareone.marketplaceMobile
99+
LOG_LEVEL=info
99100
TEMPORARY_AUTH0_TOKEN=
100101
EOF
101102

.github/workflows/ios-testflight.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ jobs:
120120
REVIEW_ENV_AUTH0_AUDIENCE=${{ vars.REVIEW_ENV_AUTH0_AUDIENCE }}
121121
REVIEW_ENV_AUTH0_API_URL=${{ vars.REVIEW_ENV_AUTH0_API_URL }}
122122
REVIEWER_EMAILS=${{ vars.REVIEWER_EMAILS }}
123+
LOG_LEVEL=${{ vars.LOG_LEVEL }}
123124
TEMPORARY_AUTH0_TOKEN=
124125
EOF
125126
echo "Environment variables configured for ${{ inputs.environment }} environment"

0 commit comments

Comments
 (0)