Commit 6be630ba authored by Floriana's avatar Floriana

updated CI script

parent 2d6a8609
Pipeline #95714377 passed with stage
in 1 minute and 37 seconds
image: ruby:2.3
pages:
# before_script:
# - export LC_ALL="C.UTF-8"
# - export LANG="en_US.UTF-8"
# - export LANGUAGE="en_US.UTF-8"
# - eval $(ssh-agent -s)
# - ssh-add <(echo "$SSH_PRIVATE_KEY")
# - mkdir -p ~/.ssh
# - chmod 700 ~/.ssh
before_script:
- export LC_ALL="C.UTF-8"
- export LANG="en_US.UTF-8"
- export LANGUAGE="en_US.UTF-8"
- eval $(ssh-agent -s)
- ssh-add <(echo "$SSH_PRIVATE_KEY")
- mkdir -p ~/.ssh
- chmod 700 ~/.ssh
# next command is suggested here: https://stackoverflow.com/questions/25689231/getting-gitlab-ci-to-clone-private-repositories
# - echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
# stage: deploy
- echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
stage: deploy
script:
- gem install bundler
- bundle install
- bundle exec jekyll build -d public
- scp -r public/* git@guides.accessnow.org:/home/git/guides
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