Skip to content

Commit 38ad86c

Browse files
committed
PEER-242: Add continue on failure for gha deploy
Signed-off-by: SeeuSim <[email protected]>
1 parent b309ab5 commit 38ad86c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/build-deploy-docker.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,11 +192,18 @@ jobs:
192192
if: ${{ contains(github.ref, 'main') && github.event.pull_request.title != 'Feedback' }}
193193
with:
194194
credentials_json: '${{ secrets.GKE_CJSON }}'
195+
continue-on-error: true
195196

196197
- name: Detect GKE Cluster
197198
id: gcloud-detect-gke
198199
if: ${{ contains(github.ref, 'main') && github.event.pull_request.title != 'Feedback' }}
199200
run: |-
201+
prev_step_success="${{ steps.gcloud-auth.outcome }}"
202+
if [[ "$prev_step_success" != "success" ]]; then
203+
echo "is_up=false" >> $GITHUB_OUTPUT
204+
exit 0
205+
fi
206+
200207
clusters="$(gcloud container clusters list)"
201208
is_up="$(echo $clusters | grep ${{ secrets.GKE_CLUSTER }})"
202209
if [[ -z "$is_up" ]]; then

0 commit comments

Comments
 (0)