From cb27d5b1049ea6dcd8ec063b940ac689025f0867 Mon Sep 17 00:00:00 2001
From: Julian Rother <julian@cccv.de>
Date: Mon, 29 Apr 2024 14:50:55 +0200
Subject: [PATCH] Fix CI build for v6.7.x

---
 .gitlab-ci.yml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 958269e..bfffd83 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:
-- 
GitLab