From 82664c70a6bc1f2aee4e9bd9795972c3895d9fdb Mon Sep 17 00:00:00 2001 From: Ryan Lerch Date: Fri, 5 May 2023 12:17:12 +1000 Subject: [PATCH] [transtats] - acutally commit the changes Signed-off-by: Ryan Lerch --- roles/openshift-apps/transtats/templates/buildconfig.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/roles/openshift-apps/transtats/templates/buildconfig.yml b/roles/openshift-apps/transtats/templates/buildconfig.yml index f9989e53c2..d533a37b74 100644 --- a/roles/openshift-apps/transtats/templates/buildconfig.yml +++ b/roles/openshift-apps/transtats/templates/buildconfig.yml @@ -17,7 +17,12 @@ spec: RUN mkdir /workspace ENV PYTHONUNBUFFERED 1 WORKDIR /workspace + {% if env == 'staging' %} + RUN git clone -b devel https://github.com/ryanlerch/transtats.git . + {% endif %} + {% if env == 'production' %} RUN git clone -b main https://github.com/transtats/transtats.git . + {% endif %} RUN pip3 install -r /workspace/requirements/base.txt RUN cp deploy/docker-compose/transtats/launch.sh /usr/bin/transtats.sh RUN cp deploy/docker-compose/transtats/wait-for-it.sh /usr/bin/wait-for-it.sh