Skip to content

Commit e578b91

Browse files
committed
moved from CloudRun to AppEngine
1 parent c2d1ee7 commit e578b91

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

app.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"automatic_scaling": {
3+
"max_instances": 1,
4+
"min_instances": 1
5+
},
6+
"env_variables": {},
7+
"runtime": "ruby25"
8+
}

cloudrun-deploy.sh

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/bin/bash
2+
#docker login -u oauth2accesstoken -p "$(gcloud auth print-access-token)" https://gcr.io
3+
4+
set -o errexit
5+
set -o pipefail
6+
set -o nounset
7+
8+
docker build -t regexplanet-ruby .
9+
docker tag regexplanet-ruby:latest gcr.io/regexplanet-hrds/ruby:latest
10+
docker push gcr.io/regexplanet-hrds/ruby:latest
11+
12+
gcloud beta run deploy regexplanet-ruby \
13+
--image gcr.io/regexplanet-hrds/ruby \
14+
--platform managed \
15+
--project regexplanet-hrds \
16+
--region us-central1 \
17+
--update-env-vars "COMMIT=$(git rev-parse --short HEAD),LASTMOD=$(date -u +%Y-%m-%dT%H:%M:%SZ)"

0 commit comments

Comments
 (0)