-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathcloudbuild.yaml
More file actions
23 lines (21 loc) · 1.1 KB
/
Copy pathcloudbuild.yaml
File metadata and controls
23 lines (21 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
steps:
- name: 'gcr.io/cloud-builders/docker'
id: Build Image
entrypoint: bash
args:
- -c
- |
docker build . -t us-east1-docker.pkg.dev/genai-playground-387506/app/github-assitant:latest \
&& docker push us-east1-docker.pkg.dev/genai-playground-387506/app/github-assitant:latest
- name: 'gcr.io/google.com/cloudsdktool/cloud-sdk'
entrypoint: gcloud
id: Deploy API
args: ['run', 'deploy', github-assistant,
--image=us-east1-docker.pkg.dev/genai-playground-387506/app/github-assitant:latest,
'--region=us-east1', '--service-account=vertex-ai-consumer@genai-playground-387506.iam.gserviceaccount.com',
'--allow-unauthenticated',
'--set-env-vars=STREAMLIT_SERVER_PORT=8080, PINECONE_INDEX_NAME=wordblend-ai-index',
'--set-secrets=GOOGLE_API_KEY=PALM2_API_KEY:latest, PINECONE_API_KEY=PINECONE_API_KEY2:latest,PINECONE_ENVIRONMENT_REGION=PINECONE_ENVIRONMENT_REGION2:latest, OPENAI_API_KEY=OPENAI_API_KEY:latest']
waitFor: [ 'Build Image' ]
images:
- 'us-east1-docker.pkg.dev/genai-playground-387506/app/github-assitant:latest'