Skip to content

Instantly share code, notes, and snippets.

@wgx
Created February 10, 2017 16:27
Show Gist options
  • Save wgx/8af183bc99a1ef3ac649015be4768215 to your computer and use it in GitHub Desktop.
Save wgx/8af183bc99a1ef3ac649015be4768215 to your computer and use it in GitHub Desktop.
A sample bitbucket pipelines deployment configuration with Jekyll and s3_website
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