[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:
parent
c91ad0c08e
commit
0db4f7e8d8
1 changed files with 10 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue