Skip to content

Commit

Permalink
Added Generic webhook trigger to buildconfig and supporting env var f…
Browse files Browse the repository at this point in the history
…or secret.
  • Loading branch information
sspeiche committed Oct 5, 2015
1 parent bf57558 commit c9f8146
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
14 changes: 13 additions & 1 deletion openshift/templates/nodejs-mongodb.json
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,12 @@
"github": {
"secret": "${GITHUB_WEBHOOK_SECRET}"
}
},
{
"type": "Generic",
"generic": {
"secret": "${GENERIC_WEBHOOK_SECRET}"
}
}
]
}
Expand Down Expand Up @@ -297,6 +303,12 @@
"generate": "expression",
"from": "[a-zA-Z0-9]{40}"
},
{
"name": "GENERIC_WEBHOOK_SECRET",
"description": "A secret string used to configure the Generic webhook",
"generate": "expression",
"from": "[a-zA-Z0-9]{40}"
},
{
"name": "DATABASE_SERVICE_NAME",
"description": "Database service name",
Expand Down Expand Up @@ -328,7 +340,7 @@
{
"name": "MONGODB_IMAGE",
"description": "Image to use for mongodb",
"value": "openshift/mongodb-24-centos7"
"value": "openshift/mongodb-24-centos7"
}
]
}
12 changes: 12 additions & 0 deletions openshift/templates/nodejs.json
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,12 @@
"github": {
"secret": "${GITHUB_WEBHOOK_SECRET}"
}
},
{
"type": "Generic",
"generic": {
"secret": "${GENERIC_WEBHOOK_SECRET}"
}
}
]
}
Expand Down Expand Up @@ -212,6 +218,12 @@
"generate": "expression",
"from": "[a-zA-Z0-9]{40}"
},
{
"name": "GENERIC_WEBHOOK_SECRET",
"description": "A secret string used to configure the Generic webhook",
"generate": "expression",
"from": "[a-zA-Z0-9]{40}"
},
{
"name": "DATABASE_SERVICE_NAME",
"description": "Database service name"
Expand Down

0 comments on commit c9f8146

Please sign in to comment.