From f77522d8cf42b7e3df072fe5852428ce479ad528 Mon Sep 17 00:00:00 2001
From: Julian Rother <julian@cccv.de>
Date: Mon, 6 Dec 2021 14:00:31 +0100
Subject: [PATCH] Switch from pre-build bundles to metor build

---
 .gitlab-ci.yml | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 0e47a7a..ec5f12a 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -18,10 +18,11 @@ autoupdate:
   extends: .build
   image: registry.git.cccv.de/infra/packages/docker-images/meteor
   script:
-  - wget -q "https://cdn-download.rocket.chat/build/rocket.chat-${UPSTREAM_VERSION}.tgz" -O rocketchat.tar.gz
-  - mkdir build
-  - tar -C build -xzf rocketchat.tar.gz
-  - cd build/bundle/programs/server && npm install && cd ../../../..
+  - meteor --version
+  - git clone --depth 1 --branch ${UPSTREAM_VERSION} https://github.com/RocketChat/Rocket.Chat rocketchat
+  - cd rocketchat && npm install && cd ..
+  - cd rocketchat && meteor build --directory ../build && cd ..
+  - cd build/bundle/programs/server/ && npm install && cd ../../../..
   artifacts:
     paths:
     - build
-- 
GitLab