From fb96cec6aa4a5d2aea18d88b9c78bf15f22583c5 Mon Sep 17 00:00:00 2001 From: mklee Date: Thu, 18 Dec 2025 04:13:16 +0000 Subject: [PATCH] update ci yaml syntax --- .github/workflows/ci-petclinic-eks.yaml | 3 ++- .github/workflows/ci-petclinic-gke.yaml | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci-petclinic-eks.yaml b/.github/workflows/ci-petclinic-eks.yaml index 94215b698..0ad081fac 100644 --- a/.github/workflows/ci-petclinic-eks.yaml +++ b/.github/workflows/ci-petclinic-eks.yaml @@ -129,7 +129,8 @@ jobs: yq -i '(.spec.template.spec.containers[] | select(.name == "petclinic-container") | .env[] | select(.name == "APP_VERSION").value) = strenv(APP_VERSION)' "$YAML_PATH" echo "Updated $YAML_PATH" - yq '.spec.template.spec.containers[] | select(.name == "petclinic-container") | {image, env}' "$YAML_PATH" + yq '.spec.template.spec.containers[] | select(.name == "petclinic-container") | .image' "$YAML_PATH" + yq '.spec.template.spec.containers[] | select(.name == "petclinic-container") | .env' "$YAML_PATH" - name: Commit & push GitOps change (EKS manifest only) run: | diff --git a/.github/workflows/ci-petclinic-gke.yaml b/.github/workflows/ci-petclinic-gke.yaml index 4eb0db970..695ad3ee0 100644 --- a/.github/workflows/ci-petclinic-gke.yaml +++ b/.github/workflows/ci-petclinic-gke.yaml @@ -133,7 +133,8 @@ jobs: yq -i '(.spec.template.spec.containers[] | select(.name == "petclinic-container") | .env[] | select(.name == "APP_VERSION").value) = strenv(APP_VERSION)' "$YAML_PATH" echo "Updated $YAML_PATH" - yq '.spec.template.spec.containers[] | select(.name == "petclinic-container") | {image, env}' "$YAML_PATH" + yq '.spec.template.spec.containers[] | select(.name == "petclinic-container") | .image' "$YAML_PATH" + yq '.spec.template.spec.containers[] | select(.name == "petclinic-container") | .env' "$YAML_PATH" - name: Commit & push GitOps change (GKE manifest only) run: |