Skip to content

Commit

Permalink
Add Travis CI build
Browse files Browse the repository at this point in the history
Signed-off-by: Matevz Mihalic <[email protected]>
  • Loading branch information
matevzmihalic authored and alexellis committed Nov 4, 2019
1 parent d53751d commit c467775
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
11 changes: 10 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,13 @@ services:
- docker

script:
- make build
- TAG=${TRAVIS_TAG:=latest} make build

before_deploy:
- echo "${DOCKER_PASSWORD}" | docker login -u "${DOCKER_USERNAME}" --password-stdin

deploy:
provider: script
script: TAG=${TRAVIS_TAG} make push manifest
on:
tags: true
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ manifest:
inlets/inlets-operator:$(TAG)-armhf
docker manifest annotate inlets/inlets-operator:$(TAG) inlets/inlets-operator:$(TAG)-arm64 --os linux --arch arm64
docker manifest annotate inlets/inlets-operator:$(TAG) inlets/inlets-operator:$(TAG)-armhf --os linux --arch arm --variant v6
docker manifest push inlets/inlets-operator:$(TAG)
docker manifest push -p inlets/inlets-operator:$(TAG)

test:
go test ./...
Expand Down

0 comments on commit c467775

Please sign in to comment.