Commit c318a9f8 authored by Vít Kabele's avatar Vít Kabele

Fixed automated deployment

parent 444ba63c
Pipeline #33008599 passed with stage
in 3 minutes
......@@ -24,17 +24,13 @@ prod:
## without extra base64 encoding.
## https://gitlab.com/gitlab-examples/ssh-private-key/issues/1#note_48526556
##
## - echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null
## - echo "$SSH_PRIVATE_KEY"
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null
##
## Create the SSH directory and give it the right permissions
##
- mkdir -p ~/.ssh
- chmod 700 ~/.ssh
- echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_rsa
- chmod 700 ~/.ssh/id_rsa
##
##
## Add known hosts to configuration file
##
- ssh-keyscan php.sh.cvut.cz >> ~/.ssh/known_hosts
......@@ -48,7 +44,7 @@ prod:
pages:
stage: deploy
only:
- master
- beta
script:
- bundle install
- jekyll build -d 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