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

gitlab ci para transferencia de archivos

parent a0c199fb
No related branches found
No related tags found
No related merge requests found
# requiring the environment of python
image: python:3.9-buster
before_script:
- pip install -r requirements.txt
- 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
test:
stage: test
script:
- jupyter-book build ./Book/ # build to public path
only:
- branches # this job will affect every branch except 'master'
except:
- master
# the 'pages' job will deploy and build your site to the 'public' path
pages:
stage: deploy
script:
- jupyter-book build ./Book/
- mv ./Book/_build/html public
- jupyter-book build ./Book/ # build to public path
- rsync -ah ./Book/_build/html semillero-halley@class.redclara.net:~/moncora/
artifacts:
paths:
- public
- _build
expire_in: 30 mins
only:
- master
- master # this job will affect only the 'master' branch
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