diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index acffa54845d8ca8a5efc848649b5d0b191f5aca0..1841dfa4fd6d66b0b9d1375c9b73e2606eedf643 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -126,21 +126,18 @@ integration test 4-3:
     - phpunit --configuration phpunit-integration.xml
 
 apigen docs:
-  image: wpdesknet/phpunit-woocommerce:1-0
-  stage: pre-deploy
-  dependencies:
-      - build php
+  image:
+    name: wpdesknet/apigen
+    entrypoint: ["/bin/sh", "-c"]
+  stage: build
   artifacts:
     expire_in: 1 day
     name: "docs"
     paths:
       - docs/
   script:
-    - ls -l
-    - php --version
-    - php composer.phar docs
-  only:
-    manual
+    - /app/vendor/bin/apigen generate ./classes --destination ./docs
+  when: manual
 
 
 build to deploy: