- Create exports
export PROJECT_ID=progetti-poc
export APP=langchain-fastapi-rag-platform
export PORT=3000
export REGION=europe-west8
export BRANCH=main
export TAG=${REGION}-docker.pkg.dev/${PROJECT_ID}/${APP}/${APP}:${BRANCH}
- Create Artifact Repo
gcloud artifacts repositories create langchain-fastapi-rag-platform --repository-format Docker --location europe-west8 --project progetti-poc
- Create Build
gcloud builds submit --tag europe-west8-docker.pkg.dev/progetti-poc/langchain-fastapi-rag-platform/langchain-fastapi-rag-platform:main --project progetti-poc
- Deploy
gcloud run deploy $APP --image $TAG --platform managed --region $REGION --port $PORT --allow-unauthenticated --env-vars-file=.env
- Clean
gcloud run services delete $APP --region $REGION
gcloud run services list