Skip to content

Commit 2d0930a

Browse files
authored
Update sample doc (#50)
1 parent e4b3be0 commit 2d0930a

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

docs/README.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
# Tekton pipeline / task example
1+
# Tekton pipeline / task example
2+
3+
A small example of using promote in a tekton pipeline to promote a service's config to a gitops repo. Creation of the
4+
pipelinerun (using servicepromotepipelinerun.yaml) will drive the pipeline to clone, build and push the service and then promote the config from the local clone into your staging/test gitops repo.
5+
6+
Creation of a taskrun (using the promoterun.yaml) will then further promote from one gitops repo to another, i.e from
7+
staging to production.
28

39
## Files
410

@@ -20,15 +26,15 @@
2026

2127
- clone this repository
2228
- run `docker build -t <image name> .` in repository root directory
23-
- run `docker tag <image name> <your docker hub id>/<image name>` toi tag the image
29+
- run `docker tag <image name> <your docker hub id>/<image name>` to tag the image
2430
- run `docker login` to login to the docker hub
2531
- run `docker push <your docker hub id>/<image name>` to push the image to the docker hub
2632

2733
## Create Tekton resource
2834

29-
- edit all yaml files marked as (template) and gitconfig file. `<xxx>` must be replaced with the real value
35+
- edit all yaml files marked as (template) in the section above and also the gitconfig file. Entries of the form `<some property>` must be replaced with the real value, i.e at occurences such as `<image name>`, `<github org>/<github repo>` etc...
3036
- create a new namespace e.g. `kubectl create ns promote`
31-
- apply auth.yaml, promotesecret.yaml, resources.yaml, build-task.yaml, servicepromote.yaml, servicepromotepipeline.yaml and promote.yaml in the namespace e.g. `kubectl -n <namespace> apply -f <yaml file name>
37+
- apply auth.yaml, promotesecret.yaml, resources.yaml, build-task.yaml, servicepromote.yaml, servicepromotepipeline.yaml and promote.yaml in the namespace e.g. `kubectl -n <namespace> apply -f <yaml file name>`
3238
- create a configmap by `kubectl create configmap promoteconfigmap --from-file=gitconfig -n <namespace>`
3339

3440
## Execute pipeline

0 commit comments

Comments
 (0)