@@ -14,6 +14,10 @@ variable "COMMIT_SHA" {
1414 default = " "
1515}
1616
17+ variable "COMMIT_SHORT_SHA" {
18+ default = " "
19+ }
20+
1721variable "BRANCH_NAME" {
1822 default = " "
1923}
@@ -126,6 +130,7 @@ target "schema" {
126130 local_image_tag (" schema" ),
127131 stable_image_tag (" schema" ),
128132 image_tag (" schema" , COMMIT_SHA),
133+ image_tag (" schema" , COMMIT_SHORT_SHA),
129134 image_tag (" schema" , BRANCH_NAME)
130135 ]
131136}
@@ -147,6 +152,7 @@ target "policy" {
147152 local_image_tag (" policy" ),
148153 stable_image_tag (" policy" ),
149154 image_tag (" policy" , COMMIT_SHA),
155+ image_tag (" policy" , COMMIT_SHORT_SHA),
150156 image_tag (" policy" , BRANCH_NAME)
151157 ]
152158}
@@ -168,6 +174,7 @@ target "server" {
168174 local_image_tag (" server" ),
169175 stable_image_tag (" server" ),
170176 image_tag (" server" , COMMIT_SHA),
177+ image_tag (" server" , COMMIT_SHORT_SHA),
171178 image_tag (" server" , BRANCH_NAME)
172179 ]
173180}
@@ -186,6 +193,7 @@ target "storage" {
186193 local_image_tag (" storage" ),
187194 stable_image_tag (" storage" ),
188195 image_tag (" storage" , COMMIT_SHA),
196+ image_tag (" storage" , COMMIT_SHORT_SHA),
189197 image_tag (" storage" , BRANCH_NAME)
190198 ]
191199}
@@ -207,6 +215,7 @@ target "commerce" {
207215 local_image_tag (" commerce" ),
208216 stable_image_tag (" commerce" ),
209217 image_tag (" commerce" , COMMIT_SHA),
218+ image_tag (" commerce" , COMMIT_SHORT_SHA),
210219 image_tag (" commerce" , BRANCH_NAME)
211220 ]
212221}
@@ -228,6 +237,7 @@ target "tokens" {
228237 local_image_tag (" tokens" ),
229238 stable_image_tag (" tokens" ),
230239 image_tag (" tokens" , COMMIT_SHA),
240+ image_tag (" tokens" , COMMIT_SHORT_SHA),
231241 image_tag (" tokens" , BRANCH_NAME)
232242 ]
233243}
@@ -249,6 +259,7 @@ target "usage-ingestor" {
249259 local_image_tag (" usage-ingestor" ),
250260 stable_image_tag (" usage-ingestor" ),
251261 image_tag (" usage-ingestor" , COMMIT_SHA),
262+ image_tag (" usage-ingestor" , COMMIT_SHORT_SHA),
252263 image_tag (" usage-ingestor" , BRANCH_NAME)
253264 ]
254265}
@@ -270,6 +281,7 @@ target "usage" {
270281 local_image_tag (" usage" ),
271282 stable_image_tag (" usage" ),
272283 image_tag (" usage" , COMMIT_SHA),
284+ image_tag (" usage" , COMMIT_SHORT_SHA),
273285 image_tag (" usage" , BRANCH_NAME)
274286 ]
275287}
@@ -291,6 +303,7 @@ target "workflows" {
291303 local_image_tag (" workflows" ),
292304 stable_image_tag (" workflows" ),
293305 image_tag (" workflows" , COMMIT_SHA),
306+ image_tag (" workflows" , COMMIT_SHORT_SHA),
294307 image_tag (" workflows" , BRANCH_NAME)
295308 ]
296309}
@@ -312,6 +325,7 @@ target "composition-federation-2" {
312325 local_image_tag (" composition-federation-2" ),
313326 stable_image_tag (" composition-federation-2" ),
314327 image_tag (" composition-federation-2" , COMMIT_SHA),
328+ image_tag (" composition-federation-2" , COMMIT_SHORT_SHA),
315329 image_tag (" composition-federation-2" , BRANCH_NAME)
316330 ]
317331}
@@ -333,6 +347,7 @@ target "app" {
333347 local_image_tag (" app" ),
334348 stable_image_tag (" app" ),
335349 image_tag (" app" , COMMIT_SHA),
350+ image_tag (" app" , COMMIT_SHORT_SHA),
336351 image_tag (" app" , BRANCH_NAME)
337352 ]
338353}
@@ -348,6 +363,7 @@ target "otel-collector" {
348363 local_image_tag (" otel-collector" ),
349364 stable_image_tag (" otel-collector" ),
350365 image_tag (" otel-collector" , COMMIT_SHA),
366+ image_tag (" otel-collector" , COMMIT_SHORT_SHA),
351367 image_tag (" otel-collector" , BRANCH_NAME)
352368 ]
353369}
@@ -365,6 +381,7 @@ target "cli" {
365381 local_image_tag (" cli" ),
366382 stable_image_tag (" cli" ),
367383 image_tag (" cli" , COMMIT_SHA),
384+ image_tag (" cli" , COMMIT_SHORT_SHA),
368385 image_tag (" cli" , BRANCH_NAME)
369386 ]
370387}
0 commit comments