Skip to content
Snippets Groups Projects
Commit 53aa9d99 authored by Alexander Martínez Méndez's avatar Alexander Martínez Méndez
Browse files

configuración ci/cd para despliegue en milab

parent 04b7b654
No related branches found
No related tags found
No related merge requests found
Pipeline #2681 failed with stage
in 1 minute and 42 seconds
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
# 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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment