Skip to content

Commit

Permalink
Separate release and deploy stages
Browse files Browse the repository at this point in the history
Stage jobs are run in parallel and we don't want as helm needs the
docker image to be pushed. Furthermore Travis does not run any stage job
if a job from the previous stage has failed which is exactly what we
want.

Signed-off-by: Rafael Porres Molina <rafa@sourced.tech>
  • Loading branch information
Rafael Porres Molina committed Oct 30, 2018
1 parent 8876faf commit 8b7c436
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ stages:
- name: test
- name: release
if: tag IS present
- name: deploy
if: tag IS present

go_import_path: github.com/src-d/lookout-gometalint-analyzer

Expand Down Expand Up @@ -54,7 +56,7 @@ jobs:
- PKG_OS=linux make packages
- DOCKER_PUSH_LATEST=true make docker-push
- name: 'Deploy to staging'
stage: release
stage: deploy
install:
- make install-helm
script:
Expand Down

0 comments on commit 8b7c436

Please # to comment.