Created
February 10, 2017 16:27
-
-
Save wgx/8af183bc99a1ef3ac649015be4768215 to your computer and use it in GitHub Desktop.
A sample bitbucket pipelines deployment configuration with Jekyll and s3_website
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
image: ruby:2.1.7 | |
pipelines: | |
default: | |
- step: | |
script: | |
- bundler --version | |
- bundle install | |
- bundle exec jekyll build | |
branches: | |
master: | |
- step: | |
script: | |
- bundler --version | |
- bundle install | |
- bundle exec jekyll build | |
- apt-get update | |
- apt-get install --assume-yes openjdk-7-jre-headless | |
- sed -i s/%BUCKET_NAME%/$PROD_BUCKET/g s3_website.yml | |
- bundle exec s3_website push | |
develop: | |
- step: | |
script: | |
- bundler --version | |
- bundle install | |
- bundle exec jekyll build | |
- apt-get update | |
- apt-get install --assume-yes openjdk-7-jre-headless | |
- sed -i s/%BUCKET_NAME%/$DEVELOP_BUCKET/g s3_website.yml | |
- bundle exec s3_website push |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment