[release-monitoring] Change the syntax of complex commands

Finally, the alembic command works! But only the upgrade one. Thanks @darknao
for help with that. Let's try to fix the rest.

Signed-off-by: Michal Konečný <mkonecny@redhat.com>
This commit is contained in:
Michal Konečný 2023-04-26 17:53:01 +02:00
parent c91ad0c08e
commit 0db4f7e8d8

View file

@ -118,7 +118,11 @@ items:
failurePolicy: Retry
execNewPod:
containerName: release-monitoring-web
command: ["/usr/bin/python3", "-m", "alembic", "-c", "/etc/anitya/alembic.ini", "current", "|", "grep", "'(head)'"]
command:
- /bin/bash
- -c
- |
python3 -m alembic -c /etc/anitya/alembic.ini current | grep '(head)'
env:
- name: ANITYA_WEB_CONFIG
value: /etc/anitya/anitya.toml
@ -206,7 +210,11 @@ items:
failurePolicy: Retry
execNewPod:
containerName: release-monitoring-web
command: ["/usr/bin/python3", "-m", "alembic", "-c", "/etc/anitya/alembic.ini", "current", "|", "grep", "'(head)'"]
command:
- /bin/bash
- -c
- |
python3 -m alembic -c /etc/anitya/alembic.ini current | grep '(head)'
env:
- name: ANITYA_WEB_CONFIG
value: /etc/anitya/anitya.toml