Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gmeghnag/pipelines-03682978
https://github.com/gmeghnag/pipelines-03682978
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/gmeghnag/pipelines-03682978
- Owner: gmeghnag
- Created: 2024-01-19T08:48:36.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-01-19T08:48:57.000Z (10 months ago)
- Last Synced: 2024-04-30T11:46:05.586Z (7 months ago)
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# pipelines-03682978
## How-to-reproduce
1. Create the needed resources (`Namespace`, `Task`, `Pipeline`, `EventListener`, `TriggerBinding`, `TriggerTemplate`, `Trigger`):
```sh
oc apply -k https://github.com/gmeghnag/pipelines-03682978
```2. Expose the `EventListener` to create a `Route`:
```sh
oc expose svc/el-test-el -n pipelines-03682978
```3. Execute an `HTTP` `POST` request to trigger a new `PipelineRun`:
```sh
curl -X POST -H "Content-Type: application/json" --data '{"repository": {"url": "test-url", "name": "test-reponame"}, "head_commit": {"id": "test-commit"}}' "http://$(oc get route el-test-el -n pipelines-03682978 -o jsonpath='{.spec.host}')"
```