Skip to content

Commit

Permalink
CI: Docker push fix (#4)
Browse files Browse the repository at this point in the history
* fix travis GO111MODULE for push type

* use vendored code

* use vendor for testing

* skip install

* use vendor

* Update .travis.yml

* Update .travis.yml
  • Loading branch information
eytan-avisror authored Aug 8, 2019
1 parent 80d11c7 commit cad69c3
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,29 @@
language: go

go:
- "1.12.5"
- 1.12.x

git:
depth: 1

env:
- GO111MODULE=on
global:
- GO111MODULE=on

install: skip

jobs:
include:

- stage: unit-test
script:
- make test
- go test -v -mod=vendor ./controllers/... -coverprofile coverage.txt
- bash <(curl -s https://codecov.io/bash)

- stage: publish-image
if: type = push
env:
- IMG=orkaproj/instance-manager:$TRAVIS_BRANCH
script:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- export IMG=orkaproj/instance-manager:$TRAVIS_BRANCH
- make docker-build
- make docker-push

0 comments on commit cad69c3

Please sign in to comment.