Skip to content

Instantly share code, notes, and snippets.

@albertstill
Created January 21, 2016 09:24
Show Gist options
  • Save albertstill/4a5ab112b384c201b18d to your computer and use it in GitHub Desktop.
Save albertstill/4a5ab112b384c201b18d to your computer and use it in GitHub Desktop.
CircleCI parameterized build example
machine:
ruby:
version: 2.2.3
dependencies:
pre:
- sudo pip install awscli
# gets verion 1.15 instead of 1.13.4
- sudo apt-get update; sudo apt-get install wget
database:
override:
- echo 'Skipping database'
test:
override:
- echo 'Skipping testing'
deployment:
production:
branch: master
commands:
- >
if [ -n "${DEPLOY_STAGING_TO_PRODUCTION}" ]; then
./deploy_staging_to_production.sh
else
./deploy_to_staging.sh;
fi
@macharmi
Copy link

macharmi commented Jun 9, 2017

I was to adopt this script but the major inconvenient of it is that when looking to your master history you don't know which feature are in the production and which aren't.
Do you have a solution for that?
Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment