File tree Expand file tree Collapse file tree 3 files changed +31
-7
lines changed Expand file tree Collapse file tree 3 files changed +31
-7
lines changed Original file line number Diff line number Diff line change @@ -243,11 +243,22 @@ jobs:
243
243
- name : Test Docker image with secrets
244
244
run : |
245
245
echo "🧪 Running full test suite with secrets..."
246
- # Docker automatically inherits env vars from the workflow env block
246
+ # Create env file with all current environment variables that might be needed
247
+ cat > test.env << EOF
248
+ OPENAI_API_KEY=$OPENAI_API_KEY
249
+ ANTHROPIC_API_KEY=$ANTHROPIC_API_KEY
250
+ VERTEC_API_KEY=$VERTEC_API_KEY
251
+ EOF
252
+
253
+ # Run tests with both config.env and test.env
247
254
docker run --rm \
248
255
--env-file deployment/config.env \
256
+ --env-file test.env \
249
257
${{ env.ECR_REPOSITORY }}:${{ github.sha }} \
250
258
just test-all
259
+
260
+ # Clean up
261
+ rm -f test.env
251
262
echo "✅ All tests passed!"
252
263
253
264
- name : Push to ECR
Original file line number Diff line number Diff line change @@ -211,11 +211,22 @@ jobs:
211
211
- name: Test Docker image with secrets
212
212
run: |
213
213
echo "🧪 Running full test suite with secrets..."
214
- # Docker automatically inherits env vars from the workflow env block
214
+ # Create env file with all current environment variables that might be needed
215
+ cat > test.env << EOF
216
+ OPENAI_API_KEY=$OPENAI_API_KEY
217
+ ANTHROPIC_API_KEY=$ANTHROPIC_API_KEY
218
+ VERTEC_API_KEY=$VERTEC_API_KEY
219
+ EOF
220
+
221
+ # Run tests with both config.env and test.env
215
222
docker run --rm \
216
223
--env-file deployment/config.env \
224
+ --env-file test.env \
217
225
${{ env.ECR_REPOSITORY }}:${{ github.sha }} \
218
226
just test-all
227
+
228
+ # Clean up
229
+ rm -f test.env
219
230
echo "✅ All tests passed!"
220
231
221
232
- name: Push to ECR
Original file line number Diff line number Diff line change @@ -447,16 +447,18 @@ Each project must customize `.github/workflows/deploy.yml` to include its specif
447
447
448
448
1. Open `.github/workflows/deploy.yml`
449
449
2. Find the `env:` block at the top (after the `on:` section)
450
- 3. Add your project's secrets :
450
+ 3. **UNCOMMENT** and customize the secrets your project needs :
451
451
` ` ` yaml
452
452
env:
453
- # Your project's secrets
454
- OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY || '' }}
455
- ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY || '' }}
456
- CUSTOM_API_TOKEN: ${{ secrets.CUSTOM_API_TOKEN || '' }}
453
+ # Example secrets (uncomment and modify for your project):
454
+ OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY || '' }} # ← UNCOMMENT THIS!
455
+ # ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY || '' }}
456
+ # CUSTOM_API_TOKEN: ${{ secrets.CUSTOM_API_TOKEN || '' }}
457
457
` ` `
458
458
4. Commit these changes - they're part of your project configuration
459
459
460
+ ⚠️ **IMPORTANT** : The secrets are commented out by default. You MUST uncomment the ones you need!
461
+
460
462
**Why this approach?**
461
463
- Simple and explicit - you see exactly what secrets your project uses
462
464
- No complex template processing or filtering
You can’t perform that action at this time.
0 commit comments