Update Application
template on push
This commit is contained in:
parent
d892815232
commit
1ac4eaddb4
@ -144,6 +144,7 @@ steps:
|
|||||||
- yq -i "del(.status)" /tmp/appset.yaml
|
- 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(.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 -i "del(.spec.generators[].list.elements[] | select(.commit_sha == \"$ARGO_APP_IMAGE_TAG\"))" /tmp/appset.yaml
|
||||||
|
- yq '. *= load("./kube/applicationset.yaml")' /tmp/appset.yaml
|
||||||
- envsubst < ./kube/main.yaml > /tmp/elements.yaml
|
- envsubst < ./kube/main.yaml > /tmp/elements.yaml
|
||||||
- yq -i '.spec.generators[].list.elements += load("/tmp/elements.yaml")' /tmp/appset.yaml
|
- yq -i '.spec.generators[].list.elements += load("/tmp/elements.yaml")' /tmp/appset.yaml
|
||||||
- kubectl apply -f /tmp/appset.yaml
|
- kubectl apply -f /tmp/appset.yaml
|
||||||
|
@ -4,16 +4,6 @@ metadata:
|
|||||||
name: badhouseplants-net
|
name: badhouseplants-net
|
||||||
namespace: argo-system
|
namespace: argo-system
|
||||||
spec:
|
spec:
|
||||||
generators:
|
|
||||||
- list:
|
|
||||||
elements:
|
|
||||||
- name: application
|
|
||||||
app: badhouseplants
|
|
||||||
branch: main
|
|
||||||
commit_sha: none
|
|
||||||
chart_version: 0.6.0
|
|
||||||
repo_url: https://git.badhouseplants.net/api/packages/badhouseplants/helm
|
|
||||||
value: |
|
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
name: "{{ app }}-{{ name }}"
|
name: "{{ app }}-{{ name }}"
|
||||||
|
Reference in New Issue
Block a user