From 31d7511adfeb26b13ec115a037db1b8edbb4bcd9 Mon Sep 17 00:00:00 2001 From: Rodolfo Carvalho Date: Tue, 16 Jun 2015 12:07:49 +0200 Subject: [PATCH] Add SOURCE_REPOSITORY_REF parameter --- openshift/templates/django-postgresql.json | 7 ++++++- openshift/templates/django.json | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/openshift/templates/django-postgresql.json b/openshift/templates/django-postgresql.json index d5df8d5..95ba8a3 100644 --- a/openshift/templates/django-postgresql.json +++ b/openshift/templates/django-postgresql.json @@ -72,7 +72,8 @@ "source": { "type": "Git", "git": { - "uri": "${SOURCE_REPOSITORY_URL}" + "uri": "${SOURCE_REPOSITORY_URL}", + "ref": "${SOURCE_REPOSITORY_REF}" }, "contextDir": "${CONTEXT_DIR}" }, @@ -281,6 +282,10 @@ "description": "The URL of the repository with your application source code", "value": "https://github.com/openshift/django-ex.git" }, + { + "name": "SOURCE_REPOSITORY_REF", + "description": "Set this to a branch name, tag or other ref of your repository if you are not using the default branch" + }, { "name": "CONTEXT_DIR", "description": "Set this to the relative path to your project if it is not in the root of your repository" diff --git a/openshift/templates/django.json b/openshift/templates/django.json index 936eea6..ebf6113 100644 --- a/openshift/templates/django.json +++ b/openshift/templates/django.json @@ -72,7 +72,8 @@ "source": { "type": "Git", "git": { - "uri": "${SOURCE_REPOSITORY_URL}" + "uri": "${SOURCE_REPOSITORY_URL}", + "ref": "${SOURCE_REPOSITORY_REF}" }, "contextDir": "${CONTEXT_DIR}" }, @@ -200,6 +201,10 @@ "description": "The URL of the repository with your application source code", "value": "https://github.com/openshift/django-ex.git" }, + { + "name": "SOURCE_REPOSITORY_REF", + "description": "Set this to a branch name, tag or other ref of your repository if you are not using the default branch" + }, { "name": "CONTEXT_DIR", "description": "Set this to the relative path to your project if it is not in the root of your repository"