File tree Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Original file line number Diff line number Diff line change 31
31
memory :
32
32
description : ' Memory for the instance'
33
33
type : string
34
- default : 512Mi
35
34
port :
36
35
description : ' WebPort for the running instance'
37
36
type : string
38
- default : " 52773"
39
37
40
38
env :
41
39
# Change this section according to your needs
50
48
GCR_LOCATION : eu.gcr.io
51
49
REGION : europe-west2
52
50
NAMESPACE : demo
51
+ SERVICE_PORT : ${{ inputs.port }}
52
+ SERVICE_MEMORY : ${{ inputs.memory }}
53
53
54
54
jobs :
55
55
deploy-cloud-run :
@@ -95,16 +95,16 @@ jobs:
95
95
gcloud config set project ${PROJECT_ID}
96
96
97
97
echo "[INFO] Deploy service..."
98
- gcloud run deploy ${SERVICE} \
99
- --platform gke \
100
- --cluster ${CLUSTER_NAME} \
101
- --cluster-location ${REGION} \
102
- --namespace ${NAMESPACE} \
103
- --port ${{ inputs.port } } \
104
- --min-instances 1 \
105
- --memory ${{ inputs.memory } } \
106
- --timeout 300 \
107
- --verbosity debug \
98
+ gcloud run deploy ${SERVICE} \
99
+ --platform gke \
100
+ --cluster ${CLUSTER_NAME} \
101
+ --cluster-location ${REGION} \
102
+ --namespace ${NAMESPACE} \
103
+ --port ${SERVICE_PORT:-52773 } \
104
+ --min-instances 1 \
105
+ --memory ${SERVICE_MEMORY:-512Mi } \
106
+ --timeout 300 \
107
+ --verbosity debug \
108
108
--image ${GCR_LOCATION}/${PROJECT_ID}/${IMAGE_NAME}:${GITHUB_SHA}
109
109
110
110
echo "[INFO] Create domain mappings..."
You can’t perform that action at this time.
0 commit comments