mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-12-27 10:57:28 +00:00
update ci yaml syntax
This commit is contained in:
parent
756db27db4
commit
fb96cec6aa
2 changed files with 4 additions and 2 deletions
3
.github/workflows/ci-petclinic-eks.yaml
vendored
3
.github/workflows/ci-petclinic-eks.yaml
vendored
|
|
@ -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: |
|
||||
|
|
|
|||
3
.github/workflows/ci-petclinic-gke.yaml
vendored
3
.github/workflows/ci-petclinic-gke.yaml
vendored
|
|
@ -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: |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue