-
Notifications
You must be signed in to change notification settings - Fork 0
/
cloudbuild.yaml
22 lines (20 loc) · 934 Bytes
/
cloudbuild.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
steps:
- name: 'gcr.io/cloud-builders/docker'
id: Build Image
entrypoint: bash
args:
- -c
- |
DOCKER_BUILDKIT=1 docker build --target=runtime . -t australia-southeast1-docker.pkg.dev/langchain-chat/app/langchain-chat-app:latest \
&& docker push australia-southeast1-docker.pkg.dev/langchain-chat/app/langchain-chat-app:latest
- name: 'gcr.io/google.com/cloudsdktool/cloud-sdk'
entrypoint: gcloud
id: Deploy API
args: ['run', 'deploy', 'langchain-chat',
'--image=australia-southeast1-docker.pkg.dev/langchain-chat/app/langchain-chat-app:latest',
'--region=australia-southeast1', '--service-account=langchain-app-cr@langchain-chat.iam.gserviceaccount.com',
'--allow-unauthenticated',
'--set-env-vars=STREAMLIT_SERVER_PORT=8080']
waitFor: [ 'Build Image' ]
images:
- australia-southeast1-docker.pkg.dev/langchain-chat/app/langchain-chat-app:latest