Ver Fonte

Merge branch 'productionEnvironment' into 'master'

Update README.md to specify production Jekyll configuration

See merge request !11

Achilleas Pipinellis há 8 anos atrás
pai
commit
177df024fb
2 ficheiros alterados com 9 adições e 2 exclusões
  1. 6 2
      .gitlab-ci.yml
  2. 3 0
      README.md

+ 6 - 2
.gitlab-ci.yml

@@ -1,9 +1,14 @@
 image: ruby:2.3
 
+variables:
+  JEKYLL_ENV: production
+
+before_script:
+  - bundle install
+
 test:
   stage: test
   script:
-  - bundle
   - bundle exec jekyll build -d test
   artifacts:
     paths:
@@ -14,7 +19,6 @@ test:
 pages:
   stage: deploy
   script:
-  - bundle
   - bundle exec jekyll build -d public
   artifacts:
     paths:

+ 3 - 0
README.md

@@ -56,6 +56,9 @@ defined in [`.gitlab-ci.yml`](.gitlab-ci.yml):
 ```
 image: ruby:2.3
 
+variables:
+  JEKYLL_ENV: production
+
 pages:
   script:
   - gem install jekyll