first commit

This commit is contained in:
ston1th 2019-12-04 14:26:39 +01:00
commit be3c522f14
11 changed files with 635 additions and 0 deletions

51
README.md Normal file
View file

@ -0,0 +1,51 @@
# status-reporter
The status reporter is a controller that watches pipelineruns for status cahnges.
These are synced to the associated git commit hashes.
For successful runs a preview environment comment will be added to the pull request.
`PipelineRun` requirements:
Params:
* gitapi - `github`, `ghe` or `gitea`
* issue - pull request issue id
* scheme - `http://` or `https://`
* tektonurl - `http://tekton-dashboard.example.com`
* previewurl - url to your deployed preview environment
Resources:
* git - revision: githash, url: clone_url
# Requirements
* Kubernetes Cluster
* go
* ko
# Build and run
Create git authentication secret:
**NOTE:** the name must be `git-auth`.
```
cat <<EOF>secret.yaml
apiVersion: v1
kind: Secret
metadata:
name: git-auth
namespace: status-reporter
type: Opaque
stringData:
github.com: "<username>:<password>"
EOF
```
```
echo KO_DOCKER_REPO='gcr.io/my-gcloud-project-name' >env.txt
./build.sh
```