Skip to content

Commit 45ce735

Browse files
committed
Limit travis release script to a single build
Prevent Travis from building and pushing up multiple times Signed-off-by: Derek McGowan <[email protected]>
1 parent 7f9530d commit 45ce735

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

.travis.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ go:
1414

1515
env:
1616
- TRAVIS_GOOS=linux TEST_RUNTIME=io.containerd.runc.v1 TRAVIS_CGO_ENABLED=1 TRAVIS_DISTRO=bionic
17-
- TRAVIS_GOOS=linux TEST_RUNTIME=io.containerd.runc.v2 TRAVIS_CGO_ENABLED=1 TRAVIS_DISTRO=bionic
17+
- TRAVIS_GOOS=linux TEST_RUNTIME=io.containerd.runc.v2 TRAVIS_CGO_ENABLED=1 TRAVIS_DISTRO=bionic TRAVIS_RELEASE=yes
1818
- TRAVIS_GOOS=linux TEST_RUNTIME=io.containerd.runtime.v1.linux TRAVIS_CGO_ENABLED=1 TRAVIS_DISTRO=bionic
1919
- TRAVIS_GOOS=darwin TRAVIS_CGO_ENABLED=0
2020

@@ -106,8 +106,7 @@ after_success:
106106
- bash <(curl -s https://codecov.io/bash) -F linux
107107

108108
before_deploy:
109-
- make release
110-
- if [ "$TRAVIS_GOOS" = "linux" ]; then make cri-release; fi
109+
- if [ "$TRAVIS_RELEASE" = "yes" ]; then make release cri-release; fi
111110

112111
deploy:
113112
- provider: releases

0 commit comments

Comments
 (0)