Commit 2eb27fa2 authored by nimrod's avatar nimrod
Browse files

GitLab CI.

Build on the webserver and save the files in the right directory.
Relax the Python version in Pipfile (I use a different version locally
to the one in CI). Set the language and locale to C.UTF-8 (the Docker
image doesn't come with other locales/ languages). Correct the submodule
URL to avoid the redirection warning.
parent 00f770de
Loading
Loading
Loading
Loading
Loading

.gitlab-ci.yml

0 → 100644
+18 −0
Original line number Diff line number Diff line
---
variables:
  GIT_SUBMODULE_STRATEGY: recursive

build:
  tags: ["host01.shore.co.il"]
  script:
    - cid="$(basename $(cat /proc/1/cpuset))"
    - docker pull adarnimrod/ci-images:python3
    - >-
      docker run
      --rm
      --env "LANG=C.UTF-8"
      --volumes-from "$cid"
      --volume "/var/www/www.shore.co.il/blog:/builds/nimrod/blog/output"
      --workdir "/builds/nimrod/blog"
      adarnimrod/ci-images:python3
      /bin/sh -xc "pipenv --python=python3 install && pipenv run clean && pipenv run build"
+1 −1
Original line number Diff line number Diff line
[submodule "pelican-mockingbird"]
	path = pelican-mockingbird
	url = https://git.shore.co.il/nimrod/pelican-mockingbird.git
	url = https://git.shore.co.il/nimrod/pelican-mockingbird.git/
+1 −1
Original line number Diff line number Diff line
@@ -10,7 +10,7 @@ pelican-minification = "*"
[dev-packages]

[requires]
python_version = "3.6"
python_version = "3"

[scripts]
build = "pelican --settings publishconf.py"
+1 −1
Original line number Diff line number Diff line
@@ -39,4 +39,4 @@ DELETE_OUTPUT_DIRECTORY = True
SLUGIFY_SOURCE = 'basename'
ARTICLE_SAVE_AS = '{slug}/index.html'

LOCALE = ('en_US.utf8')
LOCALE = ('C.UTF-8')