Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Alexander Martínez Méndez
LA-CoNGA Courses 2021B
Commits
b9bd6795
Commit
b9bd6795
authored
May 16, 2021
by
Alexander Martinez
Browse files
configuración gitlab ci/cd
parent
fd3ce529
Changes
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
0 → 100644
View file @
b9bd6795
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment