Skip to content

Commit

Permalink
Only deploy master branch
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathonsim committed Jan 15, 2018
1 parent cbc3a3d commit 6be6823
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion buildspec-4-sftpdeploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ phases:
- aws s3 sync --delete coverage/ "s3://${COVERAGE_S3_BUCKET}/coverage"

# Deployment to the SFTP server
- |
- |
# Determine what git branch we're on, we only want to deploy master
export CODEBUILD_GIT_BRANCH=`git symbolic-ref HEAD --short 2>/dev/null`
if [[ "$CODEBUILD_GIT_BRANCH" == 'master' ]]; then
Expand Down

0 comments on commit 6be6823

Please sign in to comment.