Skip to content

Commit f24342e

Browse files
Merge pull request #321 from splitio/CLI-51575
Create Harness CI inputset for split_synchronizer
2 parents a24fdbb + 71c48cc commit f24342e

File tree

4 files changed

+176
-140
lines changed

4 files changed

+176
-140
lines changed

.github/workflows/docker.yml

Lines changed: 0 additions & 74 deletions
This file was deleted.

.github/workflows/unstable.yml

Lines changed: 0 additions & 66 deletions
This file was deleted.
Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
inputSet:
2+
name: split_synchronizer
3+
tags: {}
4+
identifier: split_synchronizer
5+
orgIdentifier: PROD
6+
projectIdentifier: Harness_Split
7+
pipeline:
8+
identifier: deploy_qos_v3
9+
stages:
10+
- parallel:
11+
- stage:
12+
identifier: CI
13+
type: CI
14+
spec:
15+
execution:
16+
steps:
17+
- step:
18+
identifier: custom_tag
19+
type: Run
20+
spec:
21+
command: VERSION="$(awk '/^const Version/{gsub(/"/, "", $4); print $4}' splitio/version.go)"
22+
when:
23+
condition: "true"
24+
- step:
25+
identifier: BuildAndPush
26+
type: BuildAndPushDockerRegistry
27+
spec:
28+
repo: <+trigger.payload.repository.name>/split-<+matrix.app><+<+matrix.fips_mode>=="enabled"?"-fips":"">
29+
tags:
30+
- <+pipeline.stages.CI<+strategy.identifierPostFix>.spec.execution.steps.custom_tag.output.outputVariables.VERSION>
31+
- latest
32+
dockerfile: docker/Dockerfile.<+matrix.app>
33+
context: ""
34+
buildArgs:
35+
FIPS_MODE: <+matrix.fips_mode>
36+
envVariables:
37+
PLUGIN_NO_PUSH: <+<+trigger.payload.ref>!="refs/heads/main"?"true":"false">
38+
PLUGIN_PLATFORM: linux/amd64,linux/arm64
39+
strategy:
40+
matrix:
41+
app:
42+
- synchronizer
43+
- proxy
44+
fips_mode:
45+
- enabled
46+
- disabled
47+
- stage:
48+
identifier: ECR
49+
type: CI
50+
spec:
51+
execution:
52+
steps:
53+
- step:
54+
identifier: custom_tag
55+
type: Run
56+
spec:
57+
command: VERSION="$(awk '/^const Version/{gsub(/"/, "", $4); print $4}' splitio/version.go)"
58+
when:
59+
condition: "true"
60+
- step:
61+
identifier: BuildAndPushECR
62+
type: BuildAndPushECR
63+
spec:
64+
imageName: <+trigger.payload.repository.name>/split-<+matrix.app><+<+matrix.fips_mode>=="enabled"?"-fips":"">
65+
tags:
66+
- <+pipeline.stages.ECR<+strategy.identifierPostFix>.spec.execution.steps.custom_tag.output.outputVariables.VERSION>
67+
- latest
68+
dockerfile: docker/Dockerfile.<+matrix.app>
69+
context: ""
70+
buildArgs:
71+
FIPS_MODE: <+matrix.fips_mode>
72+
envVariables:
73+
PLUGIN_NO_PUSH: <+<+trigger.payload.ref>!="refs/heads/main"?"true":"false">
74+
PLUGIN_PLATFORM: linux/amd64,linux/arm64
75+
strategy:
76+
matrix:
77+
app:
78+
- synchronizer
79+
- proxy
80+
fips_mode:
81+
- enabled
82+
- disabled
83+
properties:
84+
ci:
85+
codebase:
86+
build:
87+
type: branch
88+
spec:
89+
branch: <+trigger.branch>
Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
inputSet:
2+
name: split_synchronizer_unstable
3+
tags: {}
4+
identifier: split_synchronizer_unstable
5+
orgIdentifier: PROD
6+
projectIdentifier: Harness_Split
7+
pipeline:
8+
identifier: deploy_qos_v3
9+
stages:
10+
- parallel:
11+
- stage:
12+
identifier: CI
13+
type: CI
14+
spec:
15+
execution:
16+
steps:
17+
- step:
18+
identifier: custom_tag
19+
type: Run
20+
spec:
21+
command: VERSION="$(git rev-parse --short HEAD)"
22+
when:
23+
condition: "true"
24+
- step:
25+
identifier: BuildAndPush
26+
type: BuildAndPushDockerRegistry
27+
spec:
28+
repo: <+trigger.payload.repository.name>/split-<+matrix.app><+<+matrix.fips_mode>=="enabled"?"-fips":"">
29+
tags:
30+
- <+pipeline.stages.CI<+strategy.identifierPostFix>.spec.execution.steps.custom_tag.output.outputVariables.VERSION>
31+
- latest
32+
dockerfile: docker/Dockerfile.<+matrix.app>
33+
context: ""
34+
buildArgs:
35+
FIPS_MODE: <+matrix.fips_mode>
36+
envVariables:
37+
PLUGIN_PLATFORM: linux/amd64,linux/arm64
38+
strategy:
39+
matrix:
40+
app:
41+
- synchronizer
42+
- proxy
43+
fips_mode:
44+
- enabled
45+
- disabled
46+
- stage:
47+
identifier: ECR
48+
type: CI
49+
spec:
50+
execution:
51+
steps:
52+
- step:
53+
identifier: custom_tag
54+
type: Run
55+
spec:
56+
command: VERSION="$(git rev-parse --short HEAD)"
57+
when:
58+
condition: "true"
59+
- step:
60+
identifier: BuildAndPushECR
61+
type: BuildAndPushECR
62+
spec:
63+
imageName: <+trigger.payload.repository.name>/split-<+matrix.app><+<+matrix.fips_mode>=="enabled"?"-fips":"">
64+
tags:
65+
- <+pipeline.stages.ECR<+strategy.identifierPostFix>.spec.execution.steps.custom_tag.output.outputVariables.VERSION>
66+
- latest
67+
dockerfile: docker/Dockerfile.<+matrix.app>
68+
context: ""
69+
buildArgs:
70+
FIPS_MODE: <+matrix.fips_mode>
71+
envVariables:
72+
PLUGIN_PLATFORM: linux/amd64,linux/arm64
73+
strategy:
74+
matrix:
75+
app:
76+
- synchronizer
77+
- proxy
78+
fips_mode:
79+
- enabled
80+
- disabled
81+
properties:
82+
ci:
83+
codebase:
84+
build:
85+
type: branch
86+
spec:
87+
branch: <+trigger.branch>

0 commit comments

Comments
 (0)