File tree Expand file tree Collapse file tree 2 files changed +25
-0
lines changed Expand file tree Collapse file tree 2 files changed +25
-0
lines changed Original file line number Diff line number Diff line change 1+ {
2+ " automatic_scaling " : {
3+ " max_instances " : 1,
4+ " min_instances " : 1
5+ },
6+ " env_variables " : {},
7+ " runtime " : " ruby25"
8+ }
Original file line number Diff line number Diff line change 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) "
You can’t perform that action at this time.
0 commit comments