Skip to content

Commit 5f6f783

Browse files
committed
updated template
1 parent a37e7af commit 5f6f783

File tree

1 file changed

+18
-9
lines changed

1 file changed

+18
-9
lines changed

.github/workflows/deployment.yml

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,14 @@ on:
2828
description: 'Domain name of deployment, before `.demo.community.intersystems.com`'
2929
required: true
3030
type: string
31+
memory:
32+
description: 'Memory for the instance'
33+
type: string
34+
default: 512Mi
35+
port:
36+
description: 'WebPort for the running instance'
37+
type: number
38+
default: 52773
3139

3240
env:
3341
# Change this section according to your needs
@@ -87,15 +95,16 @@ jobs:
8795
gcloud config set project ${PROJECT_ID}
8896
8997
echo "[INFO] Deploy service..."
90-
gcloud run deploy ${SERVICE} \
91-
--platform gke \
92-
--cluster ${CLUSTER_NAME} \
93-
--cluster-location ${REGION} \
94-
--namespace ${NAMESPACE} \
95-
--port 52773 \
96-
--min-instances 1 \
97-
--timeout 300 \
98-
--verbosity debug \
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 \
99108
--image ${GCR_LOCATION}/${PROJECT_ID}/${IMAGE_NAME}:${GITHUB_SHA}
100109
101110
echo "[INFO] Create domain mappings..."

0 commit comments

Comments
 (0)