From 53aa9d990a111db1bc5cf3a27cf66bc0e7d4cccf Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Alexander=20Mart=C3=ADnez=20M=C3=A9ndez?=
 <alexander2198160@correo.uis.edu.co>
Date: Wed, 12 Apr 2023 14:44:06 +0000
Subject: [PATCH] =?UTF-8?q?configuraci=C3=B3n=20ci/cd=20para=20despliegue?=
 =?UTF-8?q?=20en=20milab?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .gitlab-ci.yml   | 38 ++++++++++++++++++++++++++++++++++++++
 requirements.txt | 24 ++++++++++++++++++++++++
 2 files changed, 62 insertions(+)
 create mode 100644 .gitlab-ci.yml
 create mode 100644 requirements.txt

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 00000000..6a4287e9
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,38 @@
+stages:
+  - build
+  - deploy
+
+# requiring the environment of python
+image: python:3.9-buster
+
+before_script:
+  - pip install -r requirements.txt
+
+jupyter-build:
+  stage: build
+  script:
+    - jupyter-book build ./docs/ # build to public path
+  artifacts:
+    paths:
+      - Book/_build
+    expire_in: 30 mins
+    
+# the 'pages' job will deploy and build your site to the 'public' path
+class-deploy:
+  stage: deploy
+  script:
+    - apt-get update
+    - apt-get --yes install rsync bash
+    - 'command -v ssh-agent >/dev/null || ( apt-get update -y && apt-get install openssh-client -y )'
+    - eval $(ssh-agent -s)
+    - echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add -
+    - mkdir -p ~/.ssh
+    - chmod 700 ~/.ssh
+    - echo "$SSH_KNOWN_HOSTS" >> ~/.ssh/known_hosts
+    - chmod 644 ~/.ssh/known_hosts
+    - rsync -ah ./Book/_build/html/* semillero-halley@class.redclara.net:~/muysc/
+  only:
+    - main # this job will affect only the 'master' branch
+
+
+
diff --git a/requirements.txt b/requirements.txt
new file mode 100644
index 00000000..1b888442
--- /dev/null
+++ b/requirements.txt
@@ -0,0 +1,24 @@
+# dependencia 
+tk
+click
+matplotlib
+seaborn
+
+# Pandas 
+pandas
+openpyxl 
+
+# datetime para manejo de fechas
+datetime
+
+# pytz para manejo de zonas horarias
+pytz
+
+jupyter-book
+sphinx
+numpy
+
+plotly
+ipywidgets
+
+pydata-sphinx-theme==0.13.1
-- 
GitLab