Commit e07459b7 authored by Pietro Saccardi's avatar Pietro Saccardi
Browse files

Using deploy via gitlab ci instead of lektor.

This is due to issue in difficulties in getting the right parms and keys to lektor
parent 6226a5ee
Loading
Loading
Loading
Loading
Loading
+7 −5
Original line number Diff line number Diff line
@@ -20,11 +20,13 @@ build:lektor:
  image: nikolaik/python-nodejs
  before_script:
    - apt-get update -qq
    - apt-get install -qq -yy rsync
    - apt-get install -qq -yy rsync openssh-client
    - mkdir -p ~/.ssh
    - chmod 700 ~/.ssh
    - echo "${DEPLOY_KNOWN_HOST}" > ~/.ssh/known_hosts
    - pipenv install
    - eval $(ssh-agent -s)
    - echo "${DEPLOY_KEY}" | tr -d '\r' | ssh-add - > /dev/null
    - ssh-keyscan -p ${DEPLOY_PORT} "${DEPLOY_HOST}" >> ~/.ssh/known_hosts
    - chmod 644 ~/.ssh/known_hosts
  only:
    - master

@@ -36,7 +38,7 @@ staging:testing:
    name: staging
    url: https://www.test.mittelab.org
  script:
    - pipenv run lektor deploy -O www --key "${DEPLOY_KEY}" testing
    - rsync -avz -e "ssh -p ${DEPLOY_PORT}" www/ "${DEPLOY_USER}@${DEPLOY_HOST}:subdomains/test/"


deploy:production:
@@ -46,7 +48,7 @@ deploy:production:
    name: deploy
    url: https://www.mittelab.org
  script:
    - pipenv run lektor deploy -O www --key "${DEPLOY_KEY}" production
    - rsync -avz -e "ssh -p ${DEPLOY_PORT}" www/ "${DEPLOY_USER}@${DEPLOY_HOST}:www/"
  when: manual
  dependencies:
    - build:lektor
+0 −12
Original line number Diff line number Diff line
@@ -17,17 +17,5 @@ name = Slovenian
url_prefix = /si/
locale = si_SI

[servers.production]
name = Production
enabled = yes
default = no
target = rsync://mittelab@srv01.delex-ws.net:11119/home/mittelab/www/

[servers.testing]
name = Testing
enabled = yes
default = yes
target = rsync://mittelab@srv01.delex-ws.net:11119/home/mittelab/subdomains/test/

[packages]
lektor-webpack-support = 0.3