Skip to content

Commit 092e07d

Browse files
authored
update docs with sample taskrun details (#43)
1 parent 56d25ad commit 092e07d

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

docs/README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,17 @@
2828

2929
- edit all yaml files marked as (template) and gitconfig file. `<xxx>` must be replaced with the real value
3030
- create a new namespace e.g. `kubectl create ns promote`
31-
- apply auth.yaml, promotesecret.yaml, resources.yaml, build-task.yaml, servicepromote.yaml and servicepromotepipeline.yaml in the namespace e.g. `kubectl apply -n <namespace> -f <yaml file name>`
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>
3232
- create a configmap by `kubectl create configmap promoteconfigmap --from-file=gitconfig -n <namespace>`
3333

3434
## Execute pipeline
3535

36+
The servicepromotepipelinerun is designed to build your microservice from its development repository and then promote the new configuration to a gitops repository (some dev/staging/test environment).
37+
3638
- create the servicepromotepipelinerun using the servicepromotepipelinerun.yaml e.g. `kubectl create -n <namespace> -f servicepromotepipelinerun.yaml`
39+
40+
## Promote to Prod
41+
42+
You can use the promoterun taskrun to run a subsequent promote from one gitops repo to another, e.g staging to prod, after merging the pull request on your first gitops repository.
43+
44+
- create the promoterun taskrun by running `kubectl create -n <namespace> -f promoterun.yaml`

docs/promoterun.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,10 @@ spec:
99
- name: github-config
1010
value: promoteconfigmap
1111
- name: from
12-
value: "https://github.com/akihikokuroda/gitops-test.git"
12+
value: "https://github.com/<OWNER>/<GITOPS-TEST-REPO>"
1313
- name: to
14-
value: "https://github.com/akihikokuroda/gitops-prod.git"
14+
value: "https://github.com/<OWNER>/<GITOPS-PROD-REPO>"
1515
- name: service
1616
value: service-a
17-
#serviceAccountName: tekton-triggers-controller
1817
taskRef:
1918
name: promote

0 commit comments

Comments
 (0)