Browse Source

Add SOURCE_REPOSITORY_REF parameter

pull/15/head
Rodolfo Carvalho 10 years ago
parent
commit
31d7511adf
2 changed files with 12 additions and 2 deletions
  1. +6
    -1
      openshift/templates/django-postgresql.json
  2. +6
    -1
      openshift/templates/django.json

+ 6
- 1
openshift/templates/django-postgresql.json View File

@ -72,7 +72,8 @@
"source": { "source": {
"type": "Git", "type": "Git",
"git": { "git": {
"uri": "${SOURCE_REPOSITORY_URL}"
"uri": "${SOURCE_REPOSITORY_URL}",
"ref": "${SOURCE_REPOSITORY_REF}"
}, },
"contextDir": "${CONTEXT_DIR}" "contextDir": "${CONTEXT_DIR}"
}, },
@ -281,6 +282,10 @@
"description": "The URL of the repository with your application source code", "description": "The URL of the repository with your application source code",
"value": "https://github.com/openshift/django-ex.git" "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", "name": "CONTEXT_DIR",
"description": "Set this to the relative path to your project if it is not in the root of your repository" "description": "Set this to the relative path to your project if it is not in the root of your repository"


+ 6
- 1
openshift/templates/django.json View File

@ -72,7 +72,8 @@
"source": { "source": {
"type": "Git", "type": "Git",
"git": { "git": {
"uri": "${SOURCE_REPOSITORY_URL}"
"uri": "${SOURCE_REPOSITORY_URL}",
"ref": "${SOURCE_REPOSITORY_REF}"
}, },
"contextDir": "${CONTEXT_DIR}" "contextDir": "${CONTEXT_DIR}"
}, },
@ -200,6 +201,10 @@
"description": "The URL of the repository with your application source code", "description": "The URL of the repository with your application source code",
"value": "https://github.com/openshift/django-ex.git" "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", "name": "CONTEXT_DIR",
"description": "Set this to the relative path to your project if it is not in the root of your repository" "description": "Set this to the relative path to your project if it is not in the root of your repository"


Loading…
Cancel
Save