From 1a3ed99d5389d988d97b4a2c80dd81047a45c4f3 Mon Sep 17 00:00:00 2001
From: Pithon Kabiro <pithon.kabiro@hft-stuttgart.de>
Date: Fri, 22 Oct 2021 14:34:33 +0000
Subject: [PATCH] Update .gitlab-ci.yml file

---
 .gitlab-ci.yml | 13 +++++++++++++
 1 file changed, 13 insertions(+)
 create mode 100644 .gitlab-ci.yml

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..1aa41ca
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,13 @@
+# https://hub.docker.com/r/library/node/tags/
+image: node:latest
+
+stages:
+  - deploy
+
+deploy-job:
+  stage: deploy
+  script:
+    - npm install
+    - npx pm2 start ./index.js --name=energy-dashboard
+  only:
+    - master
-- 
GitLab