Skip to content

Commit a0ff4b5

Browse files
author
Michal Fojtik
committed
Merge pull request sclorg#15 from rhcarvalho/git-ref
Add SOURCE_REPOSITORY_REF parameter
2 parents bd60712 + 31d7511 commit a0ff4b5

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

openshift/templates/django-postgresql.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@
7272
"source": {
7373
"type": "Git",
7474
"git": {
75-
"uri": "${SOURCE_REPOSITORY_URL}"
75+
"uri": "${SOURCE_REPOSITORY_URL}",
76+
"ref": "${SOURCE_REPOSITORY_REF}"
7677
},
7778
"contextDir": "${CONTEXT_DIR}"
7879
},
@@ -281,6 +282,10 @@
281282
"description": "The URL of the repository with your application source code",
282283
"value": "https://github.com/openshift/django-ex.git"
283284
},
285+
{
286+
"name": "SOURCE_REPOSITORY_REF",
287+
"description": "Set this to a branch name, tag or other ref of your repository if you are not using the default branch"
288+
},
284289
{
285290
"name": "CONTEXT_DIR",
286291
"description": "Set this to the relative path to your project if it is not in the root of your repository"

openshift/templates/django.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@
7272
"source": {
7373
"type": "Git",
7474
"git": {
75-
"uri": "${SOURCE_REPOSITORY_URL}"
75+
"uri": "${SOURCE_REPOSITORY_URL}",
76+
"ref": "${SOURCE_REPOSITORY_REF}"
7677
},
7778
"contextDir": "${CONTEXT_DIR}"
7879
},
@@ -200,6 +201,10 @@
200201
"description": "The URL of the repository with your application source code",
201202
"value": "https://github.com/openshift/django-ex.git"
202203
},
204+
{
205+
"name": "SOURCE_REPOSITORY_REF",
206+
"description": "Set this to a branch name, tag or other ref of your repository if you are not using the default branch"
207+
},
203208
{
204209
"name": "CONTEXT_DIR",
205210
"description": "Set this to the relative path to your project if it is not in the root of your repository"

0 commit comments

Comments
 (0)