[release-monitoring] Revert the command mid hook changes

When testing the container locally I found out that the command should still
work, so the issue needs to be somewhere else.

Signed-off-by: Michal Konečný <mkonecny@redhat.com>
This commit is contained in:
Michal Konečný 2023-04-26 10:07:39 +02:00
parent 74988bf1ff
commit a697655559

View file

@ -19,7 +19,7 @@ items:
failurePolicy: Abort
execNewPod:
containerName: release-monitoring-web
command: [/bin/python3, -m "alembic.config", "-c /etc/anitya/alembic.ini upgrade head"]
command: [/bin/sh, -i, -c, "alembic-3 -c /etc/anitya/alembic.ini upgrade head"]
volumes:
- config-volume
resources: {}
@ -118,7 +118,7 @@ items:
failurePolicy: Retry
execNewPod:
containerName: release-monitoring-web
command: [/bin/python3, -m "alembic.config", "-c /etc/anitya/alembic.ini current | grep '(head)'"]
command: [/bin/bash, -c, "alembic-3 -c /etc/anitya/alembic.ini current | grep '(head)'"]
env:
- name: ANITYA_WEB_CONFIG
value: /etc/anitya/anitya.toml
@ -206,7 +206,7 @@ items:
failurePolicy: Retry
execNewPod:
containerName: release-monitoring-web
command: [/bin/python3, -m "alembic.config", "-c /etc/anitya/alembic.ini current | grep '(head)'"]
command: [/bin/bash, -c, "alembic-3 -c /etc/anitya/alembic.ini current | grep '(head)'"]
env:
- name: ANITYA_WEB_CONFIG
value: /etc/anitya/anitya.toml