diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 958269ef11558f1c192af6b8e0f9656b18e028c3..bfffd8314f052e1b4af7cd00e358b6d110e11ac7 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -36,7 +36,8 @@ autoupdate:
   - export PATH=$PATH:/root/.meteor
   - meteor --version
   - cd rocketchat && YARN_CHECKSUM_BEHAVIOR=update yarn install --json && git diff yarn.lock && cd ..
-  - cd rocketchat && yarn build:ci -- --directory $(pwd)/../build && cd ..
+  # yarn build:ci uses hard-coded /tmp/dist directory for build output
+  - cd rocketchat && yarn build:ci && cd .. && mv /tmp/dist ./build
   - cd build/bundle/programs/server/ && npm install --production && cd ../../../..
   artifacts:
     paths: