Skip to content

Commit

Permalink
Add env vars to deploy section (#263)
Browse files Browse the repository at this point in the history
## Problem

Forgot to explicitly put `shell: bash` for 1 npm command + needed to
move env vars down to `run` command that actually needs them.

## Type of Change

- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] This change requires a documentation update
- [x] Infrastructure change (CI configs, etc)
- [ ] Non-code change (docs, etc)
- [ ] None of the above: (explain here)
  • Loading branch information
aulorbe authored Aug 28, 2024
1 parent 9182e27 commit 44a81a9
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/actions/e2e-testing/edge/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ runs:

- name: Move package to pinecone-rag-demo
run: mv pinecone-database-pinecone-*.tgz .
shell: bash

- name: Install Pinecone Vercel app dependencies
run: npm install
Expand All @@ -58,14 +59,6 @@ runs:
run: npm install pinecone-database-pinecone-*.tgz
shell: bash

- name: Set up environment variables
env:
PINECONE_API_KEY: ${{ inputs.PINECONE_API_KEY }}
PINECONE_REGION: us-west-2
PINECONE_INDEX: end-to-end-edge-test
PINECONE_CLOUD: aws
OPENAI_API_KEY: ${{ inputs.OPENAI_API_KEY }}

- name: Install pnpm
run: npm install -g pnpm
shell: bash
Expand All @@ -90,5 +83,10 @@ runs:
env:
VERCEL_TEAM_SCOPE: ${{ inputs.VERCEL_TEAM_SCOPE }}
VERCEL_TOKEN: ${{ inputs.VERCEL_TOKEN }}
PINECONE_API_KEY: ${{ inputs.PINECONE_API_KEY }}
PINECONE_REGION: us-west-2
PINECONE_INDEX: end-to-end-edge-test
PINECONE_CLOUD: aws
OPENAI_API_KEY: ${{ inputs.OPENAI_API_KEY }}
run: vercel deploy --token=$VERCEL_TOKEN --scope=$VERCEL_TEAM_SCOPE
shell: bash

0 comments on commit 44a81a9

Please sign in to comment.