-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #143 from ePages-de/develop
Release v0.1.0
- Loading branch information
Showing
759 changed files
with
38,394 additions
and
157 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Gemfile.lock export-ignore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
_site | ||
.sass-cache | ||
.jekyll-metadata | ||
.tweet-cache | ||
.bundle | ||
_config_write.yml | ||
log/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
2.4.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# Load DSL and set up stages | ||
require "capistrano/setup" | ||
|
||
# Include default deployment tasks | ||
require "capistrano/deploy" | ||
|
||
# Load the SCM plugin appropriate to your project: | ||
# | ||
# require "capistrano/scm/hg" | ||
# install_plugin Capistrano::SCM::Hg | ||
# or | ||
# require "capistrano/scm/svn" | ||
# install_plugin Capistrano::SCM::Svn | ||
# or | ||
require "capistrano/scm/git" | ||
install_plugin Capistrano::SCM::Git | ||
|
||
# Include tasks from other gems included in your Gemfile | ||
# | ||
# For documentation on these, see for example: | ||
# | ||
# https://github.com/capistrano/rvm | ||
# https://github.com/capistrano/rbenv | ||
# https://github.com/capistrano/chruby | ||
# https://github.com/capistrano/bundler | ||
# https://github.com/capistrano/rails | ||
# https://github.com/capistrano/passenger | ||
# | ||
# require "capistrano/rvm" | ||
# require "capistrano/rbenv" | ||
# require "capistrano/chruby" | ||
# require "capistrano/bundler" | ||
# require "capistrano/rails/assets" | ||
# require "capistrano/rails/migrations" | ||
# require "capistrano/passenger" | ||
|
||
# Load custom tasks from `lib/capistrano/tasks` if you have any defined | ||
Dir.glob("lib/capistrano/tasks/*.rake").each { |r| import r } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
FROM ruby:2.4.2 | ||
|
||
RUN apt-get update \ | ||
&& apt-get install -y \ | ||
node \ | ||
python-pygments \ | ||
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/ | ||
|
||
RUN gem install \ | ||
jekyll \ | ||
jekyll-redirect-from \ | ||
kramdown \ | ||
rdiscount \ | ||
rouge | ||
|
||
EXPOSE 4000 | ||
|
||
WORKDIR /src | ||
|
||
COPY build.sh . | ||
|
||
CMD jekyll serve |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,22 @@ | ||
source "https://rubygems.org" | ||
source 'https://rubygems.org' | ||
ruby RUBY_VERSION | ||
|
||
# Hello! This is where you manage which Jekyll version is used to run. | ||
# When you want to use a different version, change it below, save the | ||
# file and run `bundle install`. Run Jekyll with `bundle exec`, like so: | ||
# | ||
# bundle exec jekyll serve | ||
# | ||
# This will help ensure the proper Jekyll version is running. | ||
# Happy Jekylling! | ||
gem "jekyll", "~> 3.6.0" | ||
gem 'jekyll' | ||
gem 'rake' | ||
gem 'colorize' | ||
gem 'html-proofer' | ||
gem 'capistrano', '3.8.1', require: false | ||
gem 'capistrano-rbenv', require: false | ||
gem 'capistrano-bundler', require: false | ||
|
||
# This is the default theme for new Jekyll sites. You may change this to anything you like. | ||
gem "minima", "~> 2.0" | ||
|
||
# If you want to use GitHub Pages, remove the "gem "jekyll"" above and | ||
# uncomment the line below. To upgrade, run `bundle update github-pages`. | ||
# gem "github-pages", group: :jekyll_plugins | ||
|
||
# If you have any plugins, put them here! | ||
group :jekyll_plugins do | ||
gem "jekyll-feed", "~> 0.6" | ||
gem 'jekyll-feed' | ||
gem 'jekyll-admin' | ||
gem 'bourbon' | ||
gem 'neat' | ||
gem 'rouge' | ||
gem 'jekyll-twitter-plugin' | ||
gem 'jekyll-paginate-v2' | ||
end | ||
|
||
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem | ||
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,54 @@ | ||
pipeline { | ||
agent any | ||
stages { | ||
stage('Build and deploy') { | ||
stage('Build') { | ||
when { anyOf { branch 'master'; branch 'develop'; expression { BRANCH_NAME ==~ /PR-\d*/ } } } | ||
steps { | ||
sh '''source ~/.bash_profile | ||
export PATH=$PATH:/usr/local/bin:$HOME/.rbenv/bin:$HOME/.rbenv/shims | ||
eval "$(rbenv init -)" | ||
rbenv local 2.4.0 | ||
gem install bundler | ||
bundle install | ||
rbenv rehash | ||
jekyll build | ||
if [ "$BRANCH_NAME" = "master" ]; then | ||
aws s3 sync ./_site s3://epages-devblog/ | ||
elif [ "$BRANCH_NAME" = "develop" ]; then | ||
aws s3 sync ./_site s3://epages-devblog-stg/ | ||
else | ||
echo "$BRANCH_NAME" | ||
fi''' | ||
sh ''' | ||
source ~/.bash_profile | ||
export PATH=$PATH:/usr/local/bin:$HOME/.rbenv/bin:$HOME/.rbenv/shims | ||
eval "$(rbenv init -)" | ||
rbenv local 2.4.2 | ||
gem install bundler | ||
bundle install | ||
rbenv rehash | ||
jekyll build | ||
''' | ||
} | ||
} | ||
stage('Test') { | ||
when { anyOf { branch 'master'; branch 'develop'; expression { BRANCH_NAME ==~ /PR-\d*/ } } } | ||
steps { | ||
sh ''' | ||
source ~/.bash_profile | ||
export PATH=$PATH:/usr/local/bin:$HOME/.rbenv/bin:$HOME/.rbenv/shims | ||
eval "$(rbenv init -)" | ||
rbenv local 2.4.2 | ||
gem install bundler | ||
bundle install | ||
rbenv rehash | ||
rake test_html | ||
rake test_files | ||
rake test_posts | ||
''' | ||
} | ||
} | ||
stage('Deploy') { | ||
when { branch 'master' } | ||
steps { | ||
sh ''' | ||
source ~/.bash_profile | ||
export PATH=$PATH:/usr/local/bin:$HOME/.rbenv/bin:$HOME/.rbenv/shims | ||
eval "$(rbenv init -)" | ||
rbenv local 2.4.2 | ||
gem install bundler | ||
bundle install | ||
rbenv rehash | ||
eval `ssh-agent -s` | ||
ssh-add | ||
bundle exec cap production deploy --trace | ||
''' | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.