diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 7e0a6b63be841f98148124690da51cd2319acb85..e4d36d1f6902d2eeb9f511270481f296c7b4fdb3 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -28,9 +28,10 @@ build_asset_images:
     - docker compose push composer assets
   after_script:
     - docker logout $CI_REGISTRY
+    - echo "COMPOSER_VERSION=$COMPOSER_VERSION" > .composerversion.env
   artifacts:
     reports:
-      dotenv: .env
+      dotenv: .composerversion.env
 
 composer_install:
   image: $IMAGE_NAME/composer:$COMPOSER_VERSION  # Composer version variable was defined in build artifact dotenv from previous job
@@ -40,8 +41,6 @@ composer_install:
   script:
     - cd app
     - composer install --no-dev
-  after_script:
-    - echo "COMPOSER_VERSION=$COMPOSER_VERSION" > .composerversion.env
   needs:
     - build_asset_images
   artifacts:
@@ -50,7 +49,7 @@ composer_install:
     expire_in: 2 hrs
   cache:
     paths:
-      - app/.composerversion.env
+      - app/.composer