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: |