@@ -50,23 +50,32 @@ jobs:
50
50
runs-on : ubuntu-20.04
51
51
steps :
52
52
- name : Checkout
53
- uses : actions/checkout@v2
53
+ uses : actions/checkout@v3
54
54
with :
55
55
repository : ${{ inputs.repository }}
56
56
ref : ${{ inputs.ref }}
57
57
58
- - name : ' Cloud Auth '
59
- uses : ' google-github-actions/auth@v0 '
58
+ - name : Google Authentication
59
+ uses : google-github-actions/auth@v1.0.0
60
60
with :
61
- credentials_json : ' ${{ secrets.SERVICE_ACCOUNT_KEY }}'
61
+ credentials_json : ${{ secrets.SERVICE_ACCOUNT_KEY }}
62
62
63
- - name : Setup Cloud SDK
64
- uses :
google-github-actions/[email protected]
63
+ - name : Get GKE credentials
64
+ uses :
google-github-actions/[email protected]
65
+ with :
66
+ project_id : {{ env.PROJECT_ID }}
67
+ cluster_name : {{ env.CLUSTER_NAME }}
68
+ location : {{ env.REGION }}
69
+
70
+ - name : Setup gcloud cli
71
+ uses :
google-github-actions/[email protected]
72
+ with :
73
+ version : ' 412.0.0'
65
74
66
75
- name : Authorize Docker push
67
76
run : |
68
77
gcloud auth list
69
- gcloud auth configure-docker
78
+ gcloud --quiet auth configure-docker
70
79
71
80
- name : Build and Push image
72
81
run : |
85
94
--namespace ${NAMESPACE} \
86
95
--port 52773 \
87
96
--min-instances 1 \
88
- --memory 512Mi \
89
97
--timeout 300 \
90
98
--verbosity debug \
91
99
--image ${GCR_LOCATION}/${PROJECT_ID}/${IMAGE_NAME}:${GITHUB_SHA}
@@ -104,7 +112,6 @@ jobs:
104
112
105
113
- name : Create domain name
106
114
run : |
107
- gcloud container clusters get-credentials ${CLUSTER_NAME} --region ${REGION} --project ${PROJECT_ID}
108
115
kubectl version
109
116
echo "[INFO] Checking if [${DOMAIN_NAME}] is in the existing Ingress annotation..."
110
117
CURRENT_DOMAINS_LIST=$(kubectl -n gke-system get svc istio-ingress -o jsonpath="{.metadata.annotations['external-dns\.alpha\.kubernetes\.io/hostname']}")
@@ -119,6 +126,5 @@ jobs:
119
126
120
127
- name : Enable TLS-access
121
128
run : |
122
- gcloud container clusters get-credentials ${CLUSTER_NAME} --region ${REGION} --project ${PROJECT_ID}
123
129
kubectl version
124
130
kubectl patch configmap config-domainmapping -n knative-serving -p '{"data":{"autoTLS":"Enabled"}}'
0 commit comments