From e584a69c804da7710a5bd7ae4239a368dae1ae48 Mon Sep 17 00:00:00 2001
From: Max Lou Hartel-Kaduk <mhartel@digitallearning.gmbh>
Date: Mon, 20 Mar 2023 11:07:09 +0000
Subject: [PATCH] Update .gitlab-ci.yml file

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

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index d469b737..88e15bdb 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -15,6 +15,8 @@ dashboard-example-docker-build:
     - docker:dind
   before_script:
     - docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
+    - apt update
+    - apt install npm
   # Default branch leaves tag empty (= latest tag)
   # All other branches are tagged with the escaped branch name (commit ref slug)
   script:
@@ -31,5 +33,6 @@ dashboard-example-docker-build:
     - echo CI_PROJECT_ID=$CI_PROJECT_ID >> .env
     - echo CI_JOB_TOKEN=$CI_JOB_TOKEN >> .env
     - cat .env
+    - npm install
     - docker build --pull -t "$CI_REGISTRY_IMAGE${tag}/dashboard-example" .
     - docker push "$CI_REGISTRY_IMAGE${tag}/dashboard-example"
-- 
GitLab