Skip to content

Commit 57234fc

Browse files
ci-reporunnerOmpragashDevanshMathur19
authored
Update pipeline drone-docker-harness: Add matrix strategy at step level. (#481)
* Update pipeline drone-docker-harness * Update pipeline drone-docker-harness * Update pipeline drone-docker-harness: Add matrix strategy at step level. * Update inputset event-Push * Update inputset event-Tag * Update inputset event-PR --------- Co-authored-by: [email protected] <[email protected]> Co-authored-by: Devansh Mathur <[email protected]>
1 parent 44157a2 commit 57234fc

File tree

4 files changed

+156
-428
lines changed

4 files changed

+156
-428
lines changed

.harness/eventPR.yaml

Lines changed: 0 additions & 112 deletions
Original file line numberDiff line numberDiff line change
@@ -13,115 +13,3 @@ inputSet:
1313
type: PR
1414
spec:
1515
number: <+trigger.prNumber>
16-
stages:
17-
- parallel:
18-
- stage:
19-
identifier: linamd64
20-
type: CI
21-
spec:
22-
execution:
23-
steps:
24-
- step:
25-
identifier: Build_Push
26-
type: Run
27-
spec:
28-
command: go build -a -tags netgo -o release/linux/amd64/drone-<+matrix.repo> ./cmd/drone-<+matrix.repo>
29-
- step:
30-
identifier: Docker_Build_and_Push
31-
type: Plugin
32-
spec:
33-
settings:
34-
repo: plugins/<+matrix.repo>
35-
dockerfile: docker/<+matrix.repo>/Dockerfile.linux.amd64
36-
auto_tag_suffix: linux-amd64
37-
- step:
38-
identifier: BuildAndPushDockerRegistry_1
39-
type: BuildAndPushDockerRegistry
40-
spec:
41-
repo: plugins/<+matrix.repo>
42-
tags:
43-
- linux-amd64
44-
dockerfile: docker/<+matrix.repo>/Dockerfile.linux.amd64
45-
- stage:
46-
identifier: linarm64
47-
type: CI
48-
spec:
49-
execution:
50-
steps:
51-
- step:
52-
identifier: buildpush
53-
type: Run
54-
spec:
55-
command: go build -a -tags netgo -o release/linux/arm64/drone-<+matrix.repo> ./cmd/drone-<+matrix.repo>
56-
- step:
57-
identifier: Docker_Build_and_Push
58-
type: Plugin
59-
spec:
60-
settings:
61-
repo: plugins/<+matrix.repo>
62-
dockerfile: docker/<+matrix.repo>/Dockerfile.linux.arm64
63-
auto_tag_suffix: linux-arm64
64-
- step:
65-
identifier: BuildAndPushDockerRegistry_1
66-
type: BuildAndPushDockerRegistry
67-
spec:
68-
repo: plugins/<+matrix.repo>
69-
tags:
70-
- linux-arm64
71-
dockerfile: docker/<+matrix.repo>/Dockerfile.linux.arm64
72-
- stage:
73-
identifier: win1809amd64
74-
type: CI
75-
spec:
76-
execution:
77-
steps:
78-
- step:
79-
identifier: Docker_Build_and_Push1
80-
type: Plugin
81-
spec:
82-
settings:
83-
repo: plugins/<+matrix.repo>
84-
dockerfile: docker/<+matrix.repo>/Dockerfile.windows.amd64.1809
85-
auto_tag_suffix: windows-1809-amd64
86-
- step:
87-
identifier: BuildAndPushDockerRegistry_2
88-
type: BuildAndPushDockerRegistry
89-
spec:
90-
repo: plugins/<+matrix.repo>
91-
tags:
92-
- windows-1809-amd64
93-
dockerfile: docker/<+matrix.repo>/Dockerfile.windows.amd64.1809
94-
- stage:
95-
identifier: winamd64
96-
type: CI
97-
spec:
98-
execution:
99-
steps:
100-
- step:
101-
identifier: Docker_Build_and_Push1
102-
type: Plugin
103-
spec:
104-
settings:
105-
repo: plugins/<+matrix.repo>
106-
dockerfile: docker/<+matrix.repo>/Dockerfile.windows.amd64.ltsc2022
107-
auto_tag_suffix: windows-ltsc2022-amd64
108-
- step:
109-
identifier: BuildAndPushDockerRegistry_2
110-
type: BuildAndPushDockerRegistry
111-
spec:
112-
repo: plugins/<+matrix.repo>
113-
tags:
114-
- windows-ltsc2022-amd64
115-
dockerfile: docker/<+matrix.repo>/Dockerfile.windows.amd64.ltsc2022
116-
- stage:
117-
identifier: Manifest
118-
type: CI
119-
spec:
120-
execution:
121-
steps:
122-
- step:
123-
identifier: Plugin_1
124-
type: Plugin
125-
spec:
126-
settings:
127-
spec: docker/<+matrix.repo>/manifest.tmpl

.harness/eventPush.yaml

Lines changed: 0 additions & 112 deletions
Original file line numberDiff line numberDiff line change
@@ -13,115 +13,3 @@ inputSet:
1313
type: branch
1414
spec:
1515
branch: <+trigger.branch>
16-
stages:
17-
- parallel:
18-
- stage:
19-
identifier: linamd64
20-
type: CI
21-
spec:
22-
execution:
23-
steps:
24-
- step:
25-
identifier: Build_Push
26-
type: Run
27-
spec:
28-
command: go build -a -tags netgo -o release/linux/amd64/drone-<+matrix.repo> ./cmd/drone-<+matrix.repo>
29-
- step:
30-
identifier: Docker_Build_and_Push
31-
type: Plugin
32-
spec:
33-
settings:
34-
repo: plugins/<+matrix.repo>
35-
dockerfile: docker/<+matrix.repo>/Dockerfile.linux.amd64
36-
auto_tag_suffix: linux-amd64
37-
- step:
38-
identifier: BuildAndPushDockerRegistry_1
39-
type: BuildAndPushDockerRegistry
40-
spec:
41-
repo: plugins/<+matrix.repo>
42-
tags:
43-
- linux-amd64
44-
dockerfile: docker/<+matrix.repo>/Dockerfile.linux.amd64
45-
- stage:
46-
identifier: linarm64
47-
type: CI
48-
spec:
49-
execution:
50-
steps:
51-
- step:
52-
identifier: buildpush
53-
type: Run
54-
spec:
55-
command: go build -a -tags netgo -o release/linux/arm64/drone-<+matrix.repo> ./cmd/drone-<+matrix.repo>
56-
- step:
57-
identifier: Docker_Build_and_Push
58-
type: Plugin
59-
spec:
60-
settings:
61-
repo: plugins/<+matrix.repo>
62-
dockerfile: docker/<+matrix.repo>/Dockerfile.linux.arm64
63-
auto_tag_suffix: linux-arm64
64-
- step:
65-
identifier: BuildAndPushDockerRegistry_1
66-
type: BuildAndPushDockerRegistry
67-
spec:
68-
repo: plugins/<+matrix.repo>
69-
tags:
70-
- linux-arm64
71-
dockerfile: docker/<+matrix.repo>/Dockerfile.linux.arm64
72-
- stage:
73-
identifier: win1809amd64
74-
type: CI
75-
spec:
76-
execution:
77-
steps:
78-
- step:
79-
identifier: Docker_Build_and_Push1
80-
type: Plugin
81-
spec:
82-
settings:
83-
repo: plugins/<+matrix.repo>
84-
dockerfile: docker/<+matrix.repo>/Dockerfile.windows.amd64.1809
85-
auto_tag_suffix: windows-1809-amd64
86-
- step:
87-
identifier: BuildAndPushDockerRegistry_2
88-
type: BuildAndPushDockerRegistry
89-
spec:
90-
repo: plugins/<+matrix.repo>
91-
tags:
92-
- windows-1809-amd64
93-
dockerfile: docker/<+matrix.repo>/Dockerfile.windows.amd64.1809
94-
- stage:
95-
identifier: winamd64
96-
type: CI
97-
spec:
98-
execution:
99-
steps:
100-
- step:
101-
identifier: Docker_Build_and_Push1
102-
type: Plugin
103-
spec:
104-
settings:
105-
repo: plugins/<+matrix.repo>
106-
dockerfile: docker/<+matrix.repo>/Dockerfile.windows.amd64.ltsc2022
107-
auto_tag_suffix: windows-ltsc2022-amd64
108-
- step:
109-
identifier: BuildAndPushDockerRegistry_2
110-
type: BuildAndPushDockerRegistry
111-
spec:
112-
repo: plugins/<+matrix.repo>
113-
tags:
114-
- windows-ltsc2022-amd64
115-
dockerfile: docker/<+matrix.repo>/Dockerfile.windows.amd64.ltsc2022
116-
- stage:
117-
identifier: Manifest
118-
type: CI
119-
spec:
120-
execution:
121-
steps:
122-
- step:
123-
identifier: Plugin_1
124-
type: Plugin
125-
spec:
126-
settings:
127-
spec: docker/<+matrix.repo>/manifest.tmpl

.harness/eventTag.yaml

Lines changed: 0 additions & 112 deletions
Original file line numberDiff line numberDiff line change
@@ -13,115 +13,3 @@ inputSet:
1313
type: tag
1414
spec:
1515
tag: <+trigger.tag>
16-
stages:
17-
- parallel:
18-
- stage:
19-
identifier: linamd64
20-
type: CI
21-
spec:
22-
execution:
23-
steps:
24-
- step:
25-
identifier: Build_Push
26-
type: Run
27-
spec:
28-
command: go build -a -tags netgo -o release/linux/amd64/drone-<+matrix.repo> ./cmd/drone-<+matrix.repo>
29-
- step:
30-
identifier: Docker_Build_and_Push
31-
type: Plugin
32-
spec:
33-
settings:
34-
repo: plugins/<+matrix.repo>
35-
dockerfile: docker/<+matrix.repo>/Dockerfile.linux.amd64
36-
auto_tag_suffix: linux-amd64
37-
- step:
38-
identifier: BuildAndPushDockerRegistry_1
39-
type: BuildAndPushDockerRegistry
40-
spec:
41-
repo: plugins/<+matrix.repo>
42-
tags:
43-
- linux-amd64
44-
dockerfile: docker/<+matrix.repo>/Dockerfile.linux.amd64
45-
- stage:
46-
identifier: linarm64
47-
type: CI
48-
spec:
49-
execution:
50-
steps:
51-
- step:
52-
identifier: buildpush
53-
type: Run
54-
spec:
55-
command: go build -a -tags netgo -o release/linux/arm64/drone-<+matrix.repo> ./cmd/drone-<+matrix.repo>
56-
- step:
57-
identifier: Docker_Build_and_Push
58-
type: Plugin
59-
spec:
60-
settings:
61-
repo: plugins/<+matrix.repo>
62-
dockerfile: docker/<+matrix.repo>/Dockerfile.linux.arm64
63-
auto_tag_suffix: linux-arm64
64-
- step:
65-
identifier: BuildAndPushDockerRegistry_1
66-
type: BuildAndPushDockerRegistry
67-
spec:
68-
repo: plugins/<+matrix.repo>
69-
tags:
70-
- linux-arm64
71-
dockerfile: docker/<+matrix.repo>/Dockerfile.linux.arm64
72-
- stage:
73-
identifier: win1809amd64
74-
type: CI
75-
spec:
76-
execution:
77-
steps:
78-
- step:
79-
identifier: Docker_Build_and_Push1
80-
type: Plugin
81-
spec:
82-
settings:
83-
repo: plugins/<+matrix.repo>
84-
dockerfile: docker/<+matrix.repo>/Dockerfile.windows.amd64.1809
85-
auto_tag_suffix: windows-1809-amd64
86-
- step:
87-
identifier: BuildAndPushDockerRegistry_2
88-
type: BuildAndPushDockerRegistry
89-
spec:
90-
repo: plugins/<+matrix.repo>
91-
tags:
92-
- windows-1809-amd64
93-
dockerfile: docker/<+matrix.repo>/Dockerfile.windows.amd64.1809
94-
- stage:
95-
identifier: winamd64
96-
type: CI
97-
spec:
98-
execution:
99-
steps:
100-
- step:
101-
identifier: Docker_Build_and_Push1
102-
type: Plugin
103-
spec:
104-
settings:
105-
repo: plugins/<+matrix.repo>
106-
dockerfile: docker/<+matrix.repo>/Dockerfile.windows.amd64.ltsc2022
107-
auto_tag_suffix: windows-ltsc2022-amd64
108-
- step:
109-
identifier: BuildAndPushDockerRegistry_2
110-
type: BuildAndPushDockerRegistry
111-
spec:
112-
repo: plugins/<+matrix.repo>
113-
tags:
114-
- windows-ltsc2022-amd64
115-
dockerfile: docker/<+matrix.repo>/Dockerfile.windows.amd64.ltsc2022
116-
- stage:
117-
identifier: Manifest
118-
type: CI
119-
spec:
120-
execution:
121-
steps:
122-
- step:
123-
identifier: Plugin_1
124-
type: Plugin
125-
spec:
126-
settings:
127-
spec: docker/<+matrix.repo>/manifest.tmpl

0 commit comments

Comments
 (0)