...
 
Commits (2)
stages: stages:
- build - build
- staging
- deploy
build:lektor: build:lektor:
stage: build stage: build
...@@ -11,3 +14,33 @@ build:lektor: ...@@ -11,3 +14,33 @@ build:lektor:
artifacts: artifacts:
paths: paths:
- www - www
staging:testing:
stage: staging
image: nikolaik/python-nodejs
environment:
name: staging
url: https://www.test.mittelab.org
before_script:
- pipenv install
script:
- pipenv run lektor deploy -O www --key "${DEPLOY_KEY}" --username "${DEPLOY_USER}" testing
only:
- master
deploy:production:
stage: deploy
image: nikolaik/python-nodejs
environment:
name: deploy
url: https://www.mittelab.org
before_script:
- pipenv install
script:
- pipenv run lektor deploy -O www --key "${DEPLOY_KEY}" --username "${DEPLOY_USER}" production
only:
- master
when: manual
...@@ -21,13 +21,13 @@ locale = si_SI ...@@ -21,13 +21,13 @@ locale = si_SI
name = Production name = Production
enabled = yes enabled = yes
default = no default = no
target = rsync://dws/home/mittelab/www/ target = rsync://srv01.delex-ws.net:11119/home/mittelab/www/
[servers.testing] [servers.testing]
name = Testing name = Testing
enabled = yes enabled = yes
default = yes default = yes
target = rsync://dws/home/mittelab/subdomains/test/ target = rsync://srv01.delex-ws.net:11119/home/mittelab/subdomains/test/
[packages] [packages]
lektor-webpack-support = 0.3 lektor-webpack-support = 0.3