Skip to content

Commit 2b53c17

Browse files
committed
Supress output of dev:apply as it outputs raw secrets, cleanup old pods
1 parent 2fc97b0 commit 2b53c17

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
audience: developers
2+
level: silent
3+
---

cloudbuild.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,17 @@ steps:
4848
gcloud container clusters get-credentials ${PROJECT_ID} --region us-east1 --project ${PROJECT_ID} \
4949
&& yarn \
5050
&& yarn dev:db:upgrade \
51-
&& yarn dev:apply
51+
&& yarn dev:apply > /dev/null
5252
id: Deploy
5353
entrypoint: bash
54+
- name: ${_DEPLOY_IMAGE_NAME}
55+
id: Cleanup old pods
56+
args:
57+
- '-c'
58+
- |
59+
gcloud container clusters get-credentials ${PROJECT_ID} --region us-east1 --project ${PROJECT_ID} \
60+
&& kubectl get pods -n dev --field-selector=status.phase!=Running -o name | xargs kubectl delete -n dev
61+
entrypoint: bash
5462
- name: gcr.io/cloud-builders/gcloud
5563
args:
5664
- '-c'

0 commit comments

Comments
 (0)