File tree Expand file tree Collapse file tree 4 files changed +4
-6
lines changed Expand file tree Collapse file tree 4 files changed +4
-6
lines changed Original file line number Diff line number Diff line change 95
95
uses : azure/setup-helm@v1
96
96
97
97
- name : Deploy to Kubernetes [PRODUCTION ENVIRONMENT]
98
- run : ./deploy.sh " ${{ inputs.image_tag }}" " ${{ inputs.debug}}"
98
+ run : ./deploy.sh ${{ inputs.image_tag }} ${{ inputs.debug}}
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ IMAGE_TAG=$(echo "${1}" | cut -d ":" -f 2)
10
10
DEBUG=${2:- 0}
11
11
12
12
# Check if the app deployment exists
13
- if kubectl get deployments app-release-my-chart-v1 && kubectl get deployments app-release-my-chart-v2; then
13
+ if kubectl get deployments app-release-my-chart-v1 2> /dev/null && kubectl get deployments app-release-my-chart-v2 2> /dev/null ; then
14
14
# Get the current v1 and v2 image tags from the app deployment in the cluster
15
15
CURRENT_V1_IMAGE_TAG=$( kubectl get pods -l app=spring-app -o json | jq -r ' .items[] | select(.metadata.name | contains("v1")) | .spec.containers[0].image' | cut -d " :" -f 2 | head -n 1)
16
16
CURRENT_V2_IMAGE_TAG=$( kubectl get pods -l app=spring-app -o json | jq -r ' .items[] | select(.metadata.name | contains("v2")) | .spec.containers[0].image' | cut -d " :" -f 2 | head -n 1)
Original file line number Diff line number Diff line change 31
31
value : {{ .Values.v1.springAppContainer.env.redisHost }}
32
32
- name : KUBERNETES_CLUSTER_DOMAIN
33
33
value : {{ .Values.kubernetesClusterDomain }}
34
- image : {{ .Values.v1.springAppContainer.image.repository }}:{{ .Values.v1.springAppContainer.image.tag
35
- | default .Chart.AppVersion }}
34
+ image : {{ .Values.v1.springAppContainer.image.repository }}:{{ .Values.v1.springAppContainer.image.tag }}
36
35
imagePullPolicy : Always
37
36
name : spring-app-container
38
37
ports :
Original file line number Diff line number Diff line change 29
29
value : {{ .Values.v2.springAppContainer.env.changelogVersion }}
30
30
- name : REDIS_HOST
31
31
value : {{ .Values.v2.springAppContainer.env.redisHost }}
32
- image : {{ .Values.v2.springAppContainer.image.repository }}:{{ .Values.v2.springAppContainer.image.tag
33
- | default .Chart.AppVersion }}
32
+ image : {{ .Values.v2.springAppContainer.image.repository }}:{{ .Values.v2.springAppContainer.image.tag }}
34
33
imagePullPolicy : Always
35
34
name : spring-app-container
36
35
ports :
You can’t perform that action at this time.
0 commit comments