Skip to content

Commit ab3fed4

Browse files
authored
Merge pull request #469 from drone-plugins/CI-15946
Create pipeline drone-docker-harness
2 parents 2140a2b + e62984f commit ab3fed4

File tree

4 files changed

+756
-0
lines changed

4 files changed

+756
-0
lines changed

.harness/eventPR.yaml

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

.harness/eventPush.yaml

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

.harness/eventTag.yaml

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

0 commit comments

Comments
 (0)