Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update pipelines-1.4 manifests #138

Merged
merged 4 commits into from
Apr 13, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions 02_pipelinerun/01_build_deploy_api_pipelinerun.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ spec:
name: build-and-deploy
params:
- name: deployment-name
value: vote-api
value: pipelines-vote-api
- name: git-url
value: https://github.com/openshift/pipelines-vote-api.git
- name: IMAGE
praveen4g0 marked this conversation as resolved.
Show resolved Hide resolved
value: image-registry.openshift-image-registry.svc:5000/pipelines-tutorial/vote-api
value: image-registry.openshift-image-registry.svc:5000/pipelines-tutorial/pipelines-vote-api
workspaces:
- name: shared-workspace
volumeClaimTemplate:
Expand Down
4 changes: 2 additions & 2 deletions 02_pipelinerun/02_build_deploy_ui_pipelinerun.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ spec:
name: build-and-deploy
params:
- name: deployment-name
value: vote-ui
value: pipelines-vote-ui
- name: git-url
value: https://github.com/openshift/pipelines-vote-ui.git
- name: IMAGE
value: image-registry.openshift-image-registry.svc:5000/pipelines-tutorial/vote-ui
value: image-registry.openshift-image-registry.svc:5000/pipelines-tutorial/pipelines-vote-ui
workspaces:
- name: shared-workspace
volumeClaimTemplate:
Expand Down
2 changes: 1 addition & 1 deletion 03_triggers/02_template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ spec:
- apiVersion: tekton.dev/v1beta1
kind: PipelineRun
metadata:
name: build-deploy-$(tt.params.git-repo-name)-$(uid)
generateName: build-deploy-$(tt.params.git-repo-name)-
spec:
serviceAccountName: pipeline
pipelineRef:
Expand Down
23 changes: 11 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ specified in the pipeline.
>If you are not into the `pipelines-tutorial` namespace, and using another namespace for the tutorial steps, please make sure you update the
frontend and backend image resource to the correct url with your namespace name like so :
>
>`image-registry.openshift-image-registry.svc:5000/<namespace-name>/vote-api:latest`
>`image-registry.openshift-image-registry.svc:5000/<namespace-name>/pipelines-vote-api:latest`



Expand All @@ -333,9 +333,9 @@ Lets start a pipeline to build and deploy backend application using `tkn`:
```bash
$ tkn pipeline start build-and-deploy \
-w name=shared-workspace,volumeClaimTemplateFile=https://raw.githubusercontent.com/openshift/pipelines-tutorial/pipelines-1.4/01_pipeline/03_persistent_volume_claim.yaml \
-p deployment-name=vote-api \
-p deployment-name=pipelines-vote-api \
-p git-url=https://github.com/openshift/pipelines-vote-api.git \
-p IMAGE=image-registry.openshift-image-registry.svc:5000/pipelines-tutorial/vote-api \
-p IMAGE=image-registry.openshift-image-registry.svc:5000/pipelines-tutorial/pipelines-vote-api \

Pipelinerun started: build-and-deploy-run-z2rz8

Expand All @@ -348,9 +348,9 @@ Similarly, start a pipeline to build and deploy frontend application:
```bash
$ tkn pipeline start build-and-deploy \
-w name=shared-workspace,volumeClaimTemplateFile=https://raw.githubusercontent.com/openshift/pipelines-tutorial/pipelines-1.4/01_pipeline/03_persistent_volume_claim.yaml \
-p deployment-name=vote-ui \
-p deployment-name=pipelines-vote-ui \
-p git-url=https://github.com/openshift/pipelines-vote-ui.git \
-p IMAGE=image-registry.openshift-image-registry.svc:5000/pipelines-tutorial/vote-ui \
-p IMAGE=image-registry.openshift-image-registry.svc:5000/pipelines-tutorial/pipelines-vote-ui \

Pipelinerun started: build-and-deploy-run-xy7rw

Expand Down Expand Up @@ -401,7 +401,7 @@ Looking back at the project, you should see that the images are successfully bui
You can get the route of the application by executing the following command and access the application

```bash
$ oc get route vote-ui --template='http://{{.spec.host}}'
$ oc get route pipelines-vote-ui --template='http://{{.spec.host}}'
```


Expand Down Expand Up @@ -452,7 +452,7 @@ spec:
- apiVersion: tekton.dev/v1beta1
kind: PipelineRun
metadata:
name: build-deploy-$(tt.params.git-repo-name)-$(uid)
generateName: build-deploy-$(tt.params.git-repo-name)-
spec:
serviceAccountName: pipeline
pipelineRef:
Expand Down Expand Up @@ -524,11 +524,10 @@ metadata:
name: vote-trigger
spec:
serviceAccountName: pipeline
triggers:
- bindings:
bindings:
- ref: vote-app
template:
ref: vote-app
template:
ref: vote-app
```

Run following command to apply Trigger.
Expand Down Expand Up @@ -623,7 +622,7 @@ $ git commit -m "empty-commit" --allow-empty && git push origin pipelines-1.4
...
Writing objects: 100% (1/1), 190 bytes | 190.00 KiB/s, done.
Total 1 (delta 0), reused 0 (delta 0)
To github.com:<github-username>/vote-api.git
To github.com:<github-username>/pipelines-vote-api.git
72c14bb..97d3115 pipelines-1.4 -> pipelines-1.4
```

Expand Down
10 changes: 5 additions & 5 deletions demo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -120,17 +120,17 @@ demo.run() {
info "Running API Build and deploy"
TKN pipeline start build-and-deploy \
-w name=shared-workspace,volumeClaimTemplateFile=01_pipeline/03_persistent_volume_claim.yaml \
-p deployment-name=vote-api \
-p deployment-name=pipelines-vote-api \
-p git-url=https://github.com/openshift/pipelines-vote-api.git \
-p IMAGE=image-registry.openshift-image-registry.svc:5000/pipelines-tutorial/vote-api \
-p IMAGE=image-registry.openshift-image-registry.svc:5000/pipelines-tutorial/pipelines-vote-api \
--showlog=true

info "Running UI Build and deploy"
TKN pipeline start build-and-deploy \
-w name=shared-workspace,volumeClaimTemplateFile=01_pipeline/03_persistent_volume_claim.yaml \
-p deployment-name=vote-ui \
-p deployment-name=pipelines-vote-ui \
-p git-url=https://github.com/openshift/pipelines-vote-ui.git \
-p IMAGE=image-registry.openshift-image-registry.svc:5000/pipelines-tutorial/vote-ui \
-p IMAGE=image-registry.openshift-image-registry.svc:5000/pipelines-tutorial/pipelines-vote-ui \
--showlog=true

info "Validating the result of pipeline run"
Expand Down Expand Up @@ -159,7 +159,7 @@ demo.validate_pipelinerun() {

demo.url() {
echo "Click following URL to access the application"
oc -n "$NAMESPACE" get route vote-ui --template='http://{{.spec.host}} '
oc -n "$NAMESPACE" get route pipelines-vote-ui --template='http://{{.spec.host}} '
echo
}

Expand Down