Skip to content

Commit

Permalink
Merge pull request #6 from sesam-community/new_build_pattern
Browse files Browse the repository at this point in the history
Change so only releases/tags trigger image builds
  • Loading branch information
egemenyavuz authored Oct 4, 2019
2 parents 0489362 + 54a0099 commit 5818246
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Steps to build your own fork:
* Sign up to Travis CI with your Github account
* Enable the forked repository inside Travis CI
* Add your DOCKER_USERNAME and DOCKER_PASSWORD as environment variables for the build inside Travis CI
* Travis CI will build and deploy once you _push_ to the master branch of your repository or create a release tag.
* Travis CI will build and deploy once you create a new release tag in your repository.
* Share your improvements using Pull Requests

## FAQ
Expand Down
5 changes: 1 addition & 4 deletions after_success.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,7 @@ GIT_REPO_OWNER="${SLUG/%\/*/}"
#add similar line as below for each contributer that has GIT_REPO_OWVER and DOCKER_REPO_OWNER different
DOCKER_REPO_OWNER=${GIT_REPO_OWNER/sesam-community/sesamcommunity}

if [ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]
then
DOCKER_REPO_TAG="latest"
elif [ -n "$TRAVIS_TAG" ]
if [ -n "$TRAVIS_TAG" ]
then
DOCKER_REPO_TAG="$TRAVIS_TAG"
fi
Expand Down

0 comments on commit 5818246

Please sign in to comment.