From 2038ba3ed08c3c1c9c180fea413b49f1c268628c Mon Sep 17 00:00:00 2001 From: Clement Verna Date: Tue, 8 Jan 2019 19:23:31 +0100 Subject: [PATCH] FPDC: Add branches ref for automatic rebuilds in openshift Signed-off-by: Clement Verna --- roles/openshift-apps/fpdc/templates/buildconfig.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/roles/openshift-apps/fpdc/templates/buildconfig.yml b/roles/openshift-apps/fpdc/templates/buildconfig.yml index 3588bd6709..213cf3d0ef 100644 --- a/roles/openshift-apps/fpdc/templates/buildconfig.yml +++ b/roles/openshift-apps/fpdc/templates/buildconfig.yml @@ -13,6 +13,11 @@ spec: type: Git git: uri: https://github.com/fedora-infra/fpdc.git +{% if env == 'staging' %} + ref: "staging" +{% else %} + ref: "production" +{% endif %} strategy: type: Source sourceStrategy: