fix: Fix the pipeline

This commit is contained in:
Nikolai Rodionov 2023-04-24 12:07:59 +02:00
parent 1ac4eaddb4
commit 97f32a32c3
No known key found for this signature in database
GPG Key ID: 19DB54039EBF8F10

View File

@ -144,7 +144,7 @@ steps:
- yq -i "del(.status)" /tmp/appset.yaml
- yq -i "del(.spec.generators[].list.elements[] | select(.branch == \"$ARGO_APP_BRANCH\"))" /tmp/appset.yaml
- yq -i "del(.spec.generators[].list.elements[] | select(.commit_sha == \"$ARGO_APP_IMAGE_TAG\"))" /tmp/appset.yaml
- yq '. *= load("./kube/applicationset.yaml")' /tmp/appset.yaml
- yq -i '. *= load("./kube/applicationset.yaml")' /tmp/appset.yaml
- envsubst < ./kube/main.yaml > /tmp/elements.yaml
- yq -i '.spec.generators[].list.elements += load("/tmp/elements.yaml")' /tmp/appset.yaml
- kubectl apply -f /tmp/appset.yaml