Fix missing parenthesis;Attempt parsing argo-cd chart
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
9eb5fbd0a3
commit
72202d9f21
@ -39,8 +39,8 @@
|
|||||||
|
|
||||||
- name: Compress tarballs
|
- name: Compress tarballs
|
||||||
community.general.archive:
|
community.general.archive:
|
||||||
dest: /opt/metacluster/container-images/{{ item | regex_findall('[^/:]+'))[-2] }}.tar.gz
|
dest: /opt/metacluster/container-images/{{ ( item | regex_findall('[^/:]+'))[-2] }}.tar.gz
|
||||||
path: /opt/metacluster/container-images/{{ item | regex_findall('[^/:]+'))[-2] }}.tar
|
path: /opt/metacluster/container-images/{{ ( item | regex_findall('[^/:]+'))[-2] }}.tar
|
||||||
remove: yes
|
remove: yes
|
||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
loop: "{{ containerimages.results | map(attribute='stdout_lines') | flatten }}"
|
loop: "{{ containerimages.results | map(attribute='stdout_lines') | flatten }}"
|
||||||
|
@ -28,7 +28,7 @@ components:
|
|||||||
helm:
|
helm:
|
||||||
version: 4.9.7 # (= ArgoCD v2.4.2)
|
version: 4.9.7 # (= ArgoCD v2.4.2)
|
||||||
chart: argo/argo-cd
|
chart: argo/argo-cd
|
||||||
parse_logic: yq e '.. | select(has("repository")) | .repository + ":" + (.tag // "v2.4.2")'
|
parse_logic: yq e '.. | select(has("repository")) |= (with(select(.tag == "" or .tag == null); .repository + ":v2.4.2") | with(select(.tag != "" and .tag != null); .repository + ":" + .tag))'
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
|
|
||||||
@ -43,7 +43,7 @@ dependencies:
|
|||||||
archive: compressed
|
archive: compressed
|
||||||
extra_opts: --strip-components=1
|
extra_opts: --strip-components=1
|
||||||
- filename: yq
|
- filename: yq
|
||||||
url: http://github.com/mikefarah/yq/releases/download/v4.25.2/yq_linux_amd64
|
url: http://github.com/mikefarah/yq/releases/download/v4.25.3/yq_linux_amd64
|
||||||
|
|
||||||
packages:
|
packages:
|
||||||
- skopeo
|
- skopeo
|
||||||
|
Loading…
Reference in New Issue
Block a user