1010 # Change this section according to your needs
1111 IMAGE_NAME : online
1212 SERVICE : online
13- DOMAIN_NAME : online.demo. community.intersystems.com
13+ DOMAIN_NAME : online.community.intersystems.com
1414
1515 # Leave this section untouched
1616 PROJECT_ID : iris-community-demos
@@ -26,20 +26,31 @@ jobs:
2626 runs-on : ubuntu-20.04
2727 steps :
2828 - name : Checkout
29- uses : actions/checkout@v2
30-
31- - name : Setup Cloud SDK
32- uses : google-github-actions/setup-gcloud@v0.2.0
29+ uses : actions/checkout@v3
30+
31+ - name : Google Authentication
32+ uses : google-github-actions/auth@v1.0.0
33+ with :
34+ credentials_json : ${{ secrets.SERVICE_ACCOUNT_KEY }}
35+
36+ - name : Get GKE credentials
37+ uses : google-github-actions/get-gke-credentials@v1.0.1
3338 with :
34- version : ' 327.0.0'
35- service_account_key : ${{ secrets.SERVICE_ACCOUNT_KEY }}
39+ project_id : iris-community-demos
40+ cluster_name : demo
41+ location : europe-west2
42+
43+ - name : Setup gcloud cli
44+ uses : google-github-actions/setup-gcloud@v1.0.0
45+ with :
46+ version : ' 412.0.0'
3647
3748 - name : Authorize Docker push
38- run : gcloud auth configure-docker
49+ run : gcloud --quiet auth configure-docker
3950
4051 - name : Build and Push image
4152 run : |
42- docker buildx build -t ${GCR_LOCATION}/${PROJECT_ID}/${IMAGE_NAME}:${GITHUB_SHA} .
53+ docker build -t ${GCR_LOCATION}/${PROJECT_ID}/${IMAGE_NAME}:${GITHUB_SHA} .
4354 docker push ${GCR_LOCATION}/${PROJECT_ID}/${IMAGE_NAME}:${GITHUB_SHA}
4455
4556 - name : Deploy to Cloud Run
5566 --namespace ${NAMESPACE} \
5667 --port 52773 \
5768 --min-instances 1 \
58- --memory 512Mi \
69+ --memory 1Gi \
5970 --timeout 300 \
6071 --verbosity debug \
6172 --image ${GCR_LOCATION}/${PROJECT_ID}/${IMAGE_NAME}:${GITHUB_SHA}
7485
7586 - name : Create domain name
7687 run : |
77- gcloud container clusters get-credentials ${CLUSTER_NAME} --region ${REGION} --project ${PROJECT_ID}
7888 kubectl version
7989 echo "[INFO] Checking if [${DOMAIN_NAME}] is in the existing Ingress annotation..."
8090 CURRENT_DOMAINS_LIST=$(kubectl -n gke-system get svc istio-ingress -o jsonpath="{.metadata.annotations['external-dns\.alpha\.kubernetes\.io/hostname']}")
8999
90100 - name : Enable TLS-access
91101 run : |
92- gcloud container clusters get-credentials ${CLUSTER_NAME} --region ${REGION} --project ${PROJECT_ID}
93- kubectl version
94102 kubectl patch configmap config-domainmapping -n knative-serving -p '{"data":{"autoTLS":"Enabled"}}'
0 commit comments