remove get helm values for it's not exist at first

This commit is contained in:
celebrateyang 2024-09-30 15:30:37 +08:00
parent 65c58b9dbc
commit 7afa79789e

View File

@ -99,11 +99,11 @@ jobs:
gcloud --quiet auth configure-docker
gcloud --quiet config set compute/zone europe-west4-b
gcloud --quiet container clusters get-credentials staging
- run:
name: Get current helm values
command: |
helm get values cobalt -n infra -o yaml > /tmp/values.yaml
# - run:
# name: Get current helm values
# command: |
# helm get values cobalt_values -n infra -o yaml > /tmp/values.yaml
- run:
name: Deploy
command: |
helm upgrade --install cobalt ./cobalt-chart -n infra -f /tmp/values.yaml --set image.repository=${IMAGE},image.tag=<< parameters.tag_prefix >>-${CIRCLE_SHA1} --history-max=3 --wait --atomic --timeout 4m0s
helm upgrade --install cobalt_values ./cobalt-chart -n infra -f /tmp/values.yaml --set image.repository=${IMAGE},image.tag=<< parameters.tag_prefix >>-${CIRCLE_SHA1} --history-max=3 --wait --atomic --timeout 4m0s