Created
January 21, 2016 09:24
-
-
Save albertstill/4a5ab112b384c201b18d to your computer and use it in GitHub Desktop.
CircleCI parameterized build example
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
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.