Commit b9bd6795 authored by Alexander Martinez's avatar Alexander Martinez
Browse files

configuración gitlab ci/cd

parent fd3ce529
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:
#- mkdocs build --strict --verbose --site-dir test
- mkdocs build --verbose --site-dir test
artifacts:
paths:
- test
except:
- master
deploy:
stage: deploy
only:
- master
script:
- mkdocs build --site-dir public
- echo "build"
- rsync -ah public/* laconga@laconga.redclara.net:~/courses21b/
artifacts:
paths:
- public
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment