Skip to content

Commit 3b68159

Browse files
authored
Merge pull request #154 from weaveworks/1850-dev-pipelines
docs: add pipeline(s) to use for local dev
2 parents e3f798e + f89eb52 commit 3b68159

File tree

3 files changed

+25
-10
lines changed

3 files changed

+25
-10
lines changed

README.md

+13
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,19 @@ The pipeline-controller is a Kubernetes controller offering an API (in terms of
1313
make run
1414
```
1515

16+
## Create example pipeline
17+
18+
To make it easier to develop on the controller, you can add example pipeline
19+
resources:
20+
21+
```bash
22+
# Github
23+
kubectl apply --recursive -f e2e/testdata/pipelines/github/
24+
25+
# Gitlab
26+
kubectl apply --recursive -f e2e/testdata/pipelines/gitlab/
27+
```
28+
1629
## Contributing
1730

1831
Check out [how to contribute](CONTRIBUTING.md) to the project.

e2e/testdata/pipelines/github/pipeline.yaml

+6-5
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@ spec:
1616
targets:
1717
- namespace: prod-github
1818
promotion:
19-
pull-request:
20-
type: "github"
21-
url: "https://github.com/weaveworks/pipeline-controller-e2e"
22-
secretRef:
23-
name: "github-promotion-credentials"
19+
strategy:
20+
pull-request:
21+
type: "github"
22+
url: "https://github.com/weaveworks/pipeline-controller-e2e"
23+
secretRef:
24+
name: "github-promotion-credentials"

e2e/testdata/pipelines/gitlab/pipeline.yaml

+6-5
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@ spec:
1616
targets:
1717
- namespace: prod-gitlab
1818
promotion:
19-
pull-request:
20-
type: "gitlab"
21-
url: "https://gitlab.git.dev.weave.works/pipeline-controller/pipeline-controller-e2e"
22-
secretRef:
23-
name: "gitlab-ee-promotion-credentials"
19+
strategy:
20+
pull-request:
21+
type: "gitlab"
22+
url: "https://gitlab.git.dev.weave.works/pipeline-controller/pipeline-controller-e2e"
23+
secretRef:
24+
name: "gitlab-ee-promotion-credentials"

0 commit comments

Comments
 (0)