reprend le gitlab ci
This commit is contained in:
+7
-4
@@ -13,10 +13,13 @@ pages:
|
||||
stage: deploy
|
||||
variables:
|
||||
BASEURL: '/$CI_PROJECT_NAME'
|
||||
webroot: .
|
||||
script:
|
||||
- bundle exec jekyll build -d public --baseurl $BASEURL --config _config.yml,_configGl.yml
|
||||
- if [ -z "$webroot" ]; then echo "Need to set webroot" && exit 1; fi
|
||||
- sudo rsync -rv ./ $webroot --exclude '.git' --exclude '.gitlab-ci.yml' --exclude '.gitignore' --delete
|
||||
- sudo chown user:group $webroot -R
|
||||
artifacts:
|
||||
paths:
|
||||
- public
|
||||
only:
|
||||
- master
|
||||
- public
|
||||
only:
|
||||
- master
|
||||
|
||||
Reference in New Issue
Block a user