@@ -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 }}"
@@ -575,7 +591,7 @@ jobs:
575591 ENABLE_UTAPI_V2 : t
576592 S3BACKEND : mem
577593 BUCKET_DENY_FILTER : utapi-event-filter-deny-bucket
578- CLOUDSERVER_IMAGE : ghcr.io/${{ github.repository }}:${{ github.sha }}
594+ CLOUDSERVER_IMAGE : ghcr.io/${{ github.repository }}:${{ github.sha }}-testcoverage
579595 MONGODB_IMAGE : ghcr.io/${{ github.repository }}/ci-mongodb:${{ github.sha }}
580596 JOB_NAME : ${{ github.job }}
581597 steps :
@@ -631,7 +647,7 @@ jobs:
631647 SCUBA_HOST : localhost
632648 SCUBA_PORT : 8100
633649 SCUBA_HEALTHCHECK_FREQUENCY : 100
634- CLOUDSERVER_IMAGE : ghcr.io/${{ github.repository }}:${{ github.sha }}
650+ CLOUDSERVER_IMAGE : ghcr.io/${{ github.repository }}:${{ github.sha }}-testcoverage
635651 MONGODB_IMAGE : ghcr.io/${{ github.repository }}/ci-mongodb:${{ github.sha }}
636652 JOB_NAME : ${{ github.job }}
637653 steps :
@@ -678,7 +694,7 @@ jobs:
678694 S3BACKEND : file
679695 S3VAULT : mem
680696 MPU_TESTING : " yes"
681- CLOUDSERVER_IMAGE : ghcr.io/${{ github.repository }}:${{ github.sha }}
697+ CLOUDSERVER_IMAGE : ghcr.io/${{ github.repository }}:${{ github.sha }}-testcoverage
682698 PYKMIP_IMAGE : ghcr.io/${{ github.repository }}/pykmip:${{ github.sha }}
683699 MONGODB_IMAGE : ghcr.io/${{ github.repository }}/ci-mongodb:${{ github.sha }}
684700 JOB_NAME : ${{ github.job }}
@@ -738,7 +754,7 @@ jobs:
738754 S3BACKEND : file
739755 S3VAULT : mem
740756 MPU_TESTING : true
741- CLOUDSERVER_IMAGE : ghcr.io/${{ github.repository }}:${{ github.sha }}
757+ CLOUDSERVER_IMAGE : ghcr.io/${{ github.repository }}:${{ github.sha }}-testcoverage
742758 PYKMIP_IMAGE : ghcr.io/${{ github.repository }}/pykmip:${{ github.sha }}
743759 JOB_NAME : ${{ github.job }}
744760 COMPOSE_FILE : docker-compose.yaml:docker-compose.sse.yaml
@@ -804,7 +820,7 @@ jobs:
804820 MPU_TESTING : " yes"
805821 S3_LOCATION_FILE : /usr/src/app/tests/locationConfig/locationConfigCeph.json
806822 MONGODB_IMAGE : ghcr.io/${{ github.repository }}/ci-mongodb:${{ github.sha }}
807- CLOUDSERVER_IMAGE : ghcr.io/${{ github.repository }}:${{ github.sha }}
823+ CLOUDSERVER_IMAGE : ghcr.io/${{ github.repository }}:${{ github.sha }}-testcoverage
808824 JOB_NAME : ${{ github.job }}
809825 ENABLE_NULL_VERSION_COMPAT_MODE : true # needed with mongodb backend
810826 steps :
@@ -925,7 +941,7 @@ jobs:
925941 VAULT_VERSION_CURRENT : 7.70.32
926942 CLOUDSERVER_IMAGE_BEFORE_SSE_MIGRATION : ghcr.io/${{ github.repository }}:9.0.8
927943 VAULT_IMAGE_BEFORE_SSE_MIGRATION : ghcr.io/scality/vault:7.70.31
928- CLOUDSERVER_IMAGE : ghcr.io/${{ github.repository }}:${{ github.sha }}
944+ CLOUDSERVER_IMAGE : ghcr.io/${{ github.repository }}:${{ github.sha }}-testcoverage
929945 VAULT_IMAGE : ghcr.io/scality/vault:7.70.32
930946 KMS_IMAGE : nsmithuk/local-kms:3.11.7
931947 MPU_TESTING : " yes"
0 commit comments