@@ -178,6 +178,7 @@ jobs:
178178 with :
179179 push : true
180180 context : .
181+ target : production
181182 provenance : false
182183 tags : |
183184 ghcr.io/${{ github.repository }}:${{ github.sha }}
@@ -187,6 +188,21 @@ jobs:
187188 cache-from : type=gha,scope=cloudserver
188189 cache-to : type=gha,mode=max,scope=cloudserver
189190
191+ - name : Build and push cloudserver image test coverage
192+ uses : docker/build-push-action@v5
193+ with :
194+ push : true
195+ context : .
196+ target : testcoverage
197+ provenance : false
198+ tags : |
199+ ghcr.io/${{ github.repository }}:${{ github.sha }}-testcoverage
200+ labels : |
201+ git.repository=${{ github.repository }}
202+ git.commit-sha=${{ github.sha }}
203+ cache-from : type=gha,scope=cloudserver
204+ cache-to : type=gha,mode=max,scope=cloudserver
205+
190206 - name : Build and push federation image
191207 uses : docker/build-push-action@v5
192208 with :
@@ -229,7 +245,7 @@ jobs:
229245 runs-on : ubuntu-24.04
230246 needs : build
231247 env :
232- CLOUDSERVER_IMAGE : ghcr.io/${{ github.repository }}:${{ github.sha }}
248+ CLOUDSERVER_IMAGE : ghcr.io/${{ github.repository }}:${{ github.sha }}-testcoverage
233249 MONGODB_IMAGE : ghcr.io/${{ github.repository }}/ci-mongodb:${{ github.sha }}
234250 S3BACKEND : mem
235251 S3_LOCATION_FILE : /usr/src/app/tests/locationConfig/locationConfigTests.json
@@ -295,7 +311,7 @@ jobs:
295311 S3_LOCATION_FILE : /usr/src/app/tests/locationConfig/locationConfigTests.json
296312 DEFAULT_BUCKET_KEY_FORMAT : v0
297313 MONGODB_IMAGE : ghcr.io/${{ github.repository }}/ci-mongodb:${{ github.sha }}
298- CLOUDSERVER_IMAGE : ghcr.io/${{ github.repository }}:${{ github.sha }}
314+ CLOUDSERVER_IMAGE : ghcr.io/${{ github.repository }}:${{ github.sha }}-testcoverage
299315 JOB_NAME : ${{ github.job }}
300316 steps :
301317 - name : Checkout
@@ -348,7 +364,7 @@ jobs:
348364 DEFAULT_BUCKET_KEY_FORMAT : v1
349365 METADATA_MAX_CACHED_BUCKETS : 1
350366 MONGODB_IMAGE : ghcr.io/${{ github.repository }}/ci-mongodb:${{ github.sha }}
351- CLOUDSERVER_IMAGE : ghcr.io/${{ github.repository }}:${{ github.sha }}
367+ CLOUDSERVER_IMAGE : ghcr.io/${{ github.repository }}:${{ github.sha }}-testcoverage
352368 JOB_NAME : ${{ github.job }}
353369 steps :
354370 - name : Checkout
@@ -405,7 +421,7 @@ jobs:
405421 env :
406422 S3BACKEND : file
407423 S3VAULT : mem
408- CLOUDSERVER_IMAGE : ghcr.io/${{ github.repository }}:${{ github.sha }}
424+ CLOUDSERVER_IMAGE : ghcr.io/${{ github.repository }}:${{ github.sha }}-testcoverage
409425 MONGODB_IMAGE : ghcr.io/${{ github.repository }}/ci-mongodb:${{ github.sha }}
410426 MPU_TESTING : " yes"
411427 ENABLE_NULL_VERSION_COMPAT_MODE : " ${{ matrix.enable-null-compat }}"
@@ -459,7 +475,7 @@ jobs:
459475 ENABLE_UTAPI_V2 : t
460476 S3BACKEND : mem
461477 BUCKET_DENY_FILTER : utapi-event-filter-deny-bucket
462- CLOUDSERVER_IMAGE : ghcr.io/${{ github.repository }}:${{ github.sha }}
478+ CLOUDSERVER_IMAGE : ghcr.io/${{ github.repository }}:${{ github.sha }}-testcoverage
463479 MONGODB_IMAGE : ghcr.io/${{ github.repository }}/ci-mongodb:${{ github.sha }}
464480 JOB_NAME : ${{ github.job }}
465481 steps :
@@ -515,7 +531,7 @@ jobs:
515531 SCUBA_HOST : localhost
516532 SCUBA_PORT : 8100
517533 SCUBA_HEALTHCHECK_FREQUENCY : 100
518- CLOUDSERVER_IMAGE : ghcr.io/${{ github.repository }}:${{ github.sha }}
534+ CLOUDSERVER_IMAGE : ghcr.io/${{ github.repository }}:${{ github.sha }}-testcoverage
519535 MONGODB_IMAGE : ghcr.io/${{ github.repository }}/ci-mongodb:${{ github.sha }}
520536 JOB_NAME : ${{ github.job }}
521537 steps :
@@ -562,7 +578,7 @@ jobs:
562578 S3BACKEND : file
563579 S3VAULT : mem
564580 MPU_TESTING : " yes"
565- CLOUDSERVER_IMAGE : ghcr.io/${{ github.repository }}:${{ github.sha }}
581+ CLOUDSERVER_IMAGE : ghcr.io/${{ github.repository }}:${{ github.sha }}-testcoverage
566582 PYKMIP_IMAGE : ghcr.io/${{ github.repository }}/pykmip:${{ github.sha }}
567583 MONGODB_IMAGE : ghcr.io/${{ github.repository }}/ci-mongodb:${{ github.sha }}
568584 JOB_NAME : ${{ github.job }}
@@ -622,7 +638,7 @@ jobs:
622638 S3BACKEND : file
623639 S3VAULT : mem
624640 MPU_TESTING : true
625- CLOUDSERVER_IMAGE : ghcr.io/${{ github.repository }}:${{ github.sha }}
641+ CLOUDSERVER_IMAGE : ghcr.io/${{ github.repository }}:${{ github.sha }}-testcoverage
626642 PYKMIP_IMAGE : ghcr.io/${{ github.repository }}/pykmip:${{ github.sha }}
627643 JOB_NAME : ${{ github.job }}
628644 COMPOSE_FILE : docker-compose.yaml:docker-compose.sse.yaml
@@ -688,7 +704,7 @@ jobs:
688704 MPU_TESTING : " yes"
689705 S3_LOCATION_FILE : /usr/src/app/tests/locationConfig/locationConfigCeph.json
690706 MONGODB_IMAGE : ghcr.io/${{ github.repository }}/ci-mongodb:${{ github.sha }}
691- CLOUDSERVER_IMAGE : ghcr.io/${{ github.repository }}:${{ github.sha }}
707+ CLOUDSERVER_IMAGE : ghcr.io/${{ github.repository }}:${{ github.sha }}-testcoverage
692708 JOB_NAME : ${{ github.job }}
693709 ENABLE_NULL_VERSION_COMPAT_MODE : true # needed with mongodb backend
694710 steps :
@@ -809,7 +825,7 @@ jobs:
809825 VAULT_VERSION_CURRENT : 7.70.32
810826 CLOUDSERVER_IMAGE_BEFORE_SSE_MIGRATION : ghcr.io/${{ github.repository }}:9.0.8
811827 VAULT_IMAGE_BEFORE_SSE_MIGRATION : ghcr.io/scality/vault:7.70.31
812- CLOUDSERVER_IMAGE : ghcr.io/${{ github.repository }}:${{ github.sha }}
828+ CLOUDSERVER_IMAGE : ghcr.io/${{ github.repository }}:${{ github.sha }}-testcoverage
813829 VAULT_IMAGE : ghcr.io/scality/vault:7.70.32
814830 KMS_IMAGE : nsmithuk/local-kms:3.11.7
815831 MPU_TESTING : " yes"
0 commit comments