forked from RAnLabNL/RAnLab-api
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdeploy.sh
More file actions
10 lines (8 loc) · 805 Bytes
/
deploy.sh
File metadata and controls
10 lines (8 loc) · 805 Bytes
1
2
3
4
5
6
7
8
9
# Prerequisite Setup Steps:
# gcloud artifacts repositories create ranlab-api-mvp --repository-format docker --location northamerica-northeast1 # create the artifact repo
# gcloud auth configure-docker northamerica-northeast1-docker.pkg.dev
docker build -t ranlab-mvp-api:latest .
docker tag ranlab-mvp-api:latest northamerica-northeast1-docker.pkg.dev/ranlab-mvp-295423/ranlab-api-mvp/ranlab-api-mvp:latest
gcloud auth print-access-token | docker login -u oauth2accesstoken --password-stdin https://gcr.io
docker push northamerica-northeast1-docker.pkg.dev/ranlab-mvp-295423/ranlab-api-mvp/ranlab-api-mvp:latest
gcloud run --platform=managed --region=northamerica-northeast1 deploy ranlab-api-mvp --image northamerica-northeast1-docker.pkg.dev/ranlab-mvp-295423/ranlab-api-mvp/ranlab-api-mvp:latest