@@ -7,26 +7,47 @@ images:
77 context : .
88 template_context : scripts/dev/templates/agent
99
10+ inputs :
11+ - agent_version
12+ - tools_version
13+
1014 stages :
15+ - name : agent-ubuntu-context
16+ task_type : docker_build
17+ dockerfile : scripts/dev/templates/agent/Dockerfile.builder
18+ tags : ["ubuntu"]
19+ buildargs :
20+ agent_version : $(inputs.params.agent_version)
21+ tools_version : $(inputs.params.tools_version)
22+ agent_distro : linux_x86_64
23+ tools_distro : ubuntu1604-x86_64
24+
25+ output :
26+ - registry : $(inputs.params.registry)/agent-ubuntu-context-dev
27+ tag : $(inputs.params.version_id)
28+
1129 - name : agent-template-ubuntu
1230 task_type : dockerfile_template
13- distro : ubuntu
1431 tags : ["ubuntu"]
32+ distro : ubuntu
1533
34+ # TODO: remove - this is only here as sonar raises a key error on version_id
35+ # if no other inputs are specified.
1636 inputs :
17- - agent_version
18- - tools_version
19- - tools_distro
20- - agent_distro
37+ - noop
2138
2239 output :
2340 - dockerfile : scripts/dev/templates/agent/Dockerfile.ubuntu-$(inputs.params.version_id)
2441
2542 - name : agent-ubuntu-build
2643 task_type : docker_build
27- dockerfile : scripts/dev/templates/agent/Dockerfile.ubuntu-$(inputs.params.version_id)
2844 tags : ["ubuntu"]
2945
46+ dockerfile : scripts/dev/templates/agent/Dockerfile.ubuntu-$(inputs.params.version_id)
47+
48+ buildargs :
49+ imagebase : $(inputs.params.registry)/agent-ubuntu-context-dev:$(inputs.params.version_id)
50+
3051 labels :
3152 quay.expires-after : 48h
3253
@@ -40,26 +61,47 @@ images:
4061 context : .
4162 template_context : scripts/dev/templates/agent
4263
64+ inputs :
65+ - agent_version
66+ - tools_version
67+
4368 stages :
69+ - name : agent-ubi-context
70+ task_type : docker_build
71+ dockerfile : scripts/dev/templates/agent/Dockerfile.builder
72+ tags : ["ubi"]
73+ buildargs :
74+ agent_version : $(inputs.params.agent_version)
75+ tools_version : $(inputs.params.tools_version)
76+ agent_distro : rhel7_x86_64
77+ tools_distro : rhel70-x86_64
78+
79+ output :
80+ - registry : $(inputs.params.registry)/agent-ubi-context-dev
81+ tag : $(inputs.params.version_id)
82+
83+
4484 - name : agent-template-ubi
4585 task_type : dockerfile_template
4686 distro : ubi
4787 tags : ["ubi"]
4888
89+ # TODO: remove - this is only here as sonar raises a key error on version_id
90+ # if no other inputs are specified.
4991 inputs :
50- - agent_version
51- - tools_version
52- - tools_distro
53- - agent_distro
92+ - noop
5493
5594 output :
5695 - dockerfile : scripts/dev/templates/agent/Dockerfile.ubi-$(inputs.params.version_id)
5796
5897
5998 - name : agent-ubi-build
6099 task_type : docker_build
61- dockerfile : scripts/dev/templates/agent/Dockerfile.ubi-$(inputs.params.version_id)
62100 tags : ["ubi"]
101+ dockerfile : scripts/dev/templates/agent/Dockerfile.ubi-$(inputs.params.version_id)
102+
103+ buildargs :
104+ imagebase : $(inputs.params.registry)/agent-ubi-context-dev:$(inputs.params.version_id)
63105
64106 labels :
65107 quay.expires-after : 48h
0 commit comments