Skip to content

Commit eaf11cf

Browse files
committed
Add travis build on branches
1 parent 6a2d8b9 commit eaf11cf

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

.travis.yaml renamed to .travis.yml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,24 @@ before_script:
3131

3232
script:
3333
- make verify
34-
- make images
34+
35+
branches:
36+
only:
37+
- privateacm
38+
- /^v.*$/
3539

3640
deploy:
3741
- provider: script
3842
skip_cleanup: true
39-
script:
40-
- docker tag quay.io/jetstack/cert-manager-controller:canary quay.io/dreamteam/cert-manager-controller:$TRAVIS_TAG
41-
- docker push quay.io/dreamteam/cert-manager-controller:$TRAVIS_TAG
43+
script: >-
44+
DOCKER_TAG=$TRAVIS_TAG bazel run //hack/release --
45+
--repo-root "$TRAVIS_BUILD_DIR"
46+
--images
47+
--images.export
48+
--images.components=controller
49+
--publish
50+
--app-version="$TRAVIS_TAG"
51+
--docker-repo="quay.io/dreamteam"
4252
on:
4353
tags: true
4454
all_branches: true

0 commit comments

Comments
 (0)