https://github.com/rampadc/cntk-tekton-trigger
https://github.com/rampadc/cntk-tekton-trigger
Last synced: 17 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/rampadc/cntk-tekton-trigger
- Owner: rampadc
- Created: 2020-06-24T11:10:55.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-07-23T06:41:15.000Z (almost 5 years ago)
- Last Synced: 2025-01-23T05:24:38.294Z (5 months ago)
- Language: Shell
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Purpose
Quick and dirty tekton trigger for IBM Garage Cloud Native Toolkit. Tested with OpenShift 4.3.
## Using existing pipeline, resources to extract values and create triggers
Assuming an application was configured with name `inventory-management-ui`. Using `igc pipeline`, a pipeline with the same name would have been created, i.e. pipeline is called `inventory-management-ui`. Additionally, a Git pipeline resource and image pipeline resource were also created with names `inventory-management-ui-git` and `inventory-management-ui-image`. Using this convention, the following script `create-triggers-jq.sh` uses [jq](https://stedolan.github.io/jq/) to parse the pipeline resource definition and extract the established URLs.
1. Run `create-triggers-jq.sh` with the name of the application. For example, `./create-trigger-jq.sh inventory-management-ui`.
2. Run `oc expose svc el-`. For example, `oc expose svc el-inventory-management-ui`.
3. Configure the github webhooks manually by following: . Make sure to set the content type to `application/json`.## All manual
1. Run create-triggers.sh with appropriate arguments. For example, `./create-trigger.sh inventory-management-ui inventory-management-ui `
2. Run `oc expose svc el-`
3. Configure the github webhooks manually by following: . Make sure to set the content type to `application/json`.