Skip to content

Commit 3202762

Browse files
added build task
1 parent 869734a commit 3202762

File tree

1 file changed

+20
-6
lines changed

1 file changed

+20
-6
lines changed

tekton/pipeline.yaml

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ spec:
88
params:
99
- name: repo-url
1010
- name: branch
11+
- name: build-image
1112
default: main
1213
tasks:
1314
- name: init
@@ -30,17 +31,30 @@ spec:
3031
value: $(params.branch)
3132
runAfter:
3233
- init
33-
34-
- name: lint
34+
35+
- name: tests
3536
workspaces:
3637
- name: source
3738
workspace: pipeline-workspace
3839
taskRef:
39-
name: flake8
40+
name: nose
4041
params:
41-
- name: image
42-
value: "python:3.9-slim"
42+
- name: database_uri
43+
value: "sqlite:///test.db"
4344
- name: args
44-
value: ["--count","--max-complexity=10","--max-line-length=127","--statistics"]
45+
value: "-v --with-spec --spec-color"
4546
runAfter:
4647
- clone
48+
49+
- name: build
50+
workspaces:
51+
- name: source
52+
workspace: pipeline-workspace
53+
taskRef:
54+
name: buildah
55+
kind: ClusterTask
56+
params:
57+
- name: IMAGE
58+
value: "$(params.build-image)"
59+
runAfter:
60+
- tests

0 commit comments

Comments
 (0)