Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make circleci target repo configurable using env var #1517

Merged
merged 1 commit into from
Oct 24, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 16 additions & 12 deletions circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,20 +26,24 @@ deployment:
prequel:
branch: development
commands:
- docker tag reactioncommerce/base:latest reactioncommerce/base:devel
- docker tag reactioncommerce/reaction:latest reactioncommerce/prequel:latest
- docker tag reactioncommerce/reaction:latest reactioncommerce/prequel:$CIRCLE_BUILD_NUM
- DOCKER_NAMESPACE=${DOCKER_NAMESPACE:-reactioncommerce}
- docker tag reactioncommerce/base:latest $DOCKER_NAMESPACE/base:devel
- docker tag reactioncommerce/reaction:latest $DOCKER_NAMESPACE/prequel:latest
- docker tag reactioncommerce/reaction:latest $DOCKER_NAMESPACE/prequel:$CIRCLE_BUILD_NUM
- docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
- docker push reactioncommerce/base:devel
- docker push reactioncommerce/prequel:$CIRCLE_BUILD_NUM
- docker push reactioncommerce/prequel:latest
- docker push $DOCKER_NAMESPACE/base:devel
- docker push $DOCKER_NAMESPACE/prequel:$CIRCLE_BUILD_NUM
- docker push $DOCKER_NAMESPACE/prequel:latest
release:
branch: master
commands:
- docker tag reactioncommerce/base:latest reactioncommerce/base:$CIRCLE_BUILD_NUM
- docker tag reactioncommerce/reaction:latest reactioncommerce/reaction:$CIRCLE_BUILD_NUM
- DOCKER_NAMESPACE=${DOCKER_NAMESPACE:-reactioncommerce}
- docker tag reactioncommerce/base:latest $DOCKER_NAMESPACE/base:latest
- docker tag reactioncommerce/base:latest $DOCKER_NAMESPACE/base:$CIRCLE_BUILD_NUM
- docker tag reactioncommerce/reaction:latest $DOCKER_NAMESPACE/reaction:latest
- docker tag reactioncommerce/reaction:latest $DOCKER_NAMESPACE/reaction:$CIRCLE_BUILD_NUM
- docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
- docker push reactioncommerce/base:$CIRCLE_BUILD_NUM
- docker push reactioncommerce/base:latest
- docker push reactioncommerce/reaction:$CIRCLE_BUILD_NUM
- docker push reactioncommerce/reaction:latest
- docker push $DOCKER_NAMESPACE/base:$CIRCLE_BUILD_NUM
- docker push $DOCKER_NAMESPACE/base:latest
- docker push $DOCKER_NAMESPACE/reaction:$CIRCLE_BUILD_NUM
- docker push $DOCKER_NAMESPACE/reaction:latest