mirror of
https://gitlab.com/free_zed/free_zed.gitlab.io.git
synced 2024-06-01 22:02:28 +00:00
Set config for prod & devel environnement
CI work with 2 repo with distinct default branche : * `devel` for `gitlab.com/free_zed/mypelican/` * `master` for `gitlab.com/free_zed/free_zed.gitlab.io` Two `publishconf.py` are set for the two repo : * `pubconf-devel.py` for `free_zed/mypelican/` * `pubconf-master.py` for `free_zed/free_zed.gitlab.io` If you push `devel` branch on `free_zed/free_zed.gitlab.io` you will encounter URL issues
This commit is contained in:
parent
3f4b871e10
commit
fbdb7ff52a
|
@ -1,18 +1,21 @@
|
|||
image: python:3.6-alpine
|
||||
|
||||
tests:
|
||||
publish:
|
||||
except:
|
||||
- master
|
||||
- devel
|
||||
script:
|
||||
- pip install -r requirements.txt
|
||||
- pelican --fatal warnings
|
||||
- pelican -s pubconf-devel.py --fatal warnings
|
||||
- pelican -s pubconf-master.py --fatal warnings
|
||||
|
||||
pages:
|
||||
only:
|
||||
- master
|
||||
- devel
|
||||
script:
|
||||
- pip install -r requirements.txt
|
||||
- pelican --fatal warnings
|
||||
- pelican -s "pubconf-${CI_COMMIT_REF_NAME}.py" --fatal warnings
|
||||
artifacts:
|
||||
when: on_success
|
||||
paths:
|
||||
|
|
|
@ -6,6 +6,7 @@ AUTHOR = 'Fred'
|
|||
DEFAULT_LANG = 'fr'
|
||||
DEFAULT_PAGINATION = False
|
||||
PATH = 'content'
|
||||
SITEURL = 'http://127.0.0.1:8000'
|
||||
RELATIVE_URLS = False
|
||||
SITENAME = 'freezed'
|
||||
SITESUBTITLE = 'Mon super slogan'
|
||||
|
|
21
pubconf-devel.py
Normal file
21
pubconf-devel.py
Normal file
|
@ -0,0 +1,21 @@
|
|||
#!/usr/bin/env python
|
||||
# -*- coding: utf-8 -*- #
|
||||
from __future__ import unicode_literals
|
||||
|
||||
# This file is only used if you use `make publish` or
|
||||
# explicitly specify it as your config file.
|
||||
|
||||
import os
|
||||
import sys
|
||||
sys.path.append(os.curdir)
|
||||
from pelicanconf import *
|
||||
|
||||
# If your site is available via HTTPS, make sure SITEURL begins with https://
|
||||
SITEURL = 'https://free_zed.gitlab.io/mypelican'
|
||||
|
||||
FEED_ALL_ATOM = 'feeds/all.atom.xml'
|
||||
CATEGORY_FEED_ATOM = 'feeds/{slug}.atom.xml'
|
||||
|
||||
LINKS = (('Archives', '/mypelican/articles/'),
|
||||
('Tags', '/mypelican/tags/'),
|
||||
('Mentions légales', '/mypelican/pages/mentions-legales/'),)
|
|
@ -12,14 +12,6 @@ from pelicanconf import *
|
|||
|
||||
# If your site is available via HTTPS, make sure SITEURL begins with https://
|
||||
SITEURL = 'https://free_zed.gitlab.io'
|
||||
RELATIVE_URLS = False
|
||||
|
||||
FEED_ALL_ATOM = 'feeds/all.atom.xml'
|
||||
CATEGORY_FEED_ATOM = 'feeds/{slug}.atom.xml'
|
||||
|
||||
DELETE_OUTPUT_DIRECTORY = True
|
||||
|
||||
# Following items are often useful when publishing
|
||||
|
||||
#DISQUS_SITENAME = ""
|
||||
#GOOGLE_ANALYTICS = ""
|
Loading…
Reference in New Issue
Block a user