From e32aa26b3f0e645716b098d33a80a9e31667c1fe Mon Sep 17 00:00:00 2001 From: Noah Loomans Date: Thu, 5 Jan 2017 18:38:33 +0000 Subject: Setup GitLab pages --- .gitlab-ci.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .gitlab-ci.yml (limited to '.gitlab-ci.yml') diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..8d03a52 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,25 @@ +# This file is a template, and might need editing before it works on your project. +# Full project: https://gitlab.com/pages/jekyll +image: ruby:2.3 + +test: + stage: test + script: + - gem install jekyll + - jekyll build -d test + artifacts: + paths: + - test + except: + - master + +pages: + stage: deploy + script: + - gem install jekyll + - jekyll build -d public + artifacts: + paths: + - public + only: + - master -- cgit v1.1 From b827c54eba3d239db94b56c4afa3acaa77956aeb Mon Sep 17 00:00:00 2001 From: Noah Loomans Date: Thu, 5 Jan 2017 19:29:23 +0000 Subject: Update .gitlab-ci.yml --- .gitlab-ci.yml | 31 +++++++++++++++++-------------- 1 file changed, 17 insertions(+), 14 deletions(-) (limited to '.gitlab-ci.yml') diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8d03a52..f7736c5 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,25 +1,28 @@ -# This file is a template, and might need editing before it works on your project. -# Full project: https://gitlab.com/pages/jekyll -image: ruby:2.3 +image: ruby:2.3 # Use Ruby Docker image + +cache: # Add Bundler cache to 'vendor' directory + paths: + - vendor/ + +before_script: # Install Gems to 'vendor' directory + - bundle install --path vendor test: stage: test - script: - - gem install jekyll - - jekyll build -d test - artifacts: + script: # Generate test site(s) into 'test' directory + - bundle exec jekyll build -d test + artifacts: # Save a zipped version for download paths: - test - except: + except: # Execute for all branches except master - master pages: stage: deploy - script: - - gem install jekyll - - jekyll build -d public - artifacts: + script: # Generate public site and deploy + - bundle exec jekyll build -d public + artifacts: # Save a zipped version for download paths: - public - only: - - master + only: # Only deploy the master branch + - master \ No newline at end of file -- cgit v1.1 From 55ae09d46013bfdcf988c225df154e6b0a3558ce Mon Sep 17 00:00:00 2001 From: Noah Loomans Date: Thu, 5 Jan 2017 19:34:24 +0000 Subject: Update .gitlab-ci.yml --- .gitlab-ci.yml | 29 ++++++----------------------- 1 file changed, 6 insertions(+), 23 deletions(-) (limited to '.gitlab-ci.yml') diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f7736c5..00e3259 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,28 +1,11 @@ -image: ruby:2.3 # Use Ruby Docker image - -cache: # Add Bundler cache to 'vendor' directory - paths: - - vendor/ - -before_script: # Install Gems to 'vendor' directory - - bundle install --path vendor - -test: - stage: test - script: # Generate test site(s) into 'test' directory - - bundle exec jekyll build -d test - artifacts: # Save a zipped version for download - paths: - - test - except: # Execute for all branches except master - - master +image: ruby:2.3 pages: - stage: deploy - script: # Generate public site and deploy - - bundle exec jekyll build -d public - artifacts: # Save a zipped version for download + script: + - gem install jekyll + - jekyll build -d public + artifacts: paths: - public - only: # Only deploy the master branch + only: - master \ No newline at end of file -- cgit v1.1