This commit is contained in:
Dhananjay Balan 2017-08-01 17:48:05 +02:00
parent 6d985ac697
commit fc1973537a

View File

@ -1,16 +1,27 @@
image: dmp1ce/hakyll:latest image: dmp1ce/hakyll:latest
pages: deploy:
before_script: before_script:
- 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )'
# run ssh-agent
- eval $(ssh-agent -s)
# add ssh key stored in SSH_PRIVATE_KEY variable to the agent store
- ssh-add <(echo "$SSH_PRIV_KEY")
# disable host key checking (NOTE: makes you susceptible to man-in-the-middle attacks)
# WARNING: use only in docker container, if you use it with shell you will overwrite your user's ssh config
- mkdir -p ~/.ssh
- echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
- cabal update - cabal update
- cabal install regex-compat - cabal install regex-compat
script: script:
- cabal build - cabal build
- cabal run clean - cabal run clean
- cabal run build - cabal run build
artifacts: - scp -r public root@testing.thaum.space:/usr/local/www/blog/
paths:
- public
only: only:
- master - master