Skip to content

Commit c467775

Browse files
matevzmihalicalexellis
authored andcommitted
Add Travis CI build
Signed-off-by: Matevz Mihalic <matevz.mihalic@gmail.com>
1 parent d53751d commit c467775

2 files changed

Lines changed: 11 additions & 2 deletions

File tree

.travis.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,13 @@ services:
88
- docker
99

1010
script:
11-
- make build
11+
- TAG=${TRAVIS_TAG:=latest} make build
12+
13+
before_deploy:
14+
- echo "${DOCKER_PASSWORD}" | docker login -u "${DOCKER_USERNAME}" --password-stdin
15+
16+
deploy:
17+
provider: script
18+
script: TAG=${TRAVIS_TAG} make push manifest
19+
on:
20+
tags: true

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ manifest:
2222
inlets/inlets-operator:$(TAG)-armhf
2323
docker manifest annotate inlets/inlets-operator:$(TAG) inlets/inlets-operator:$(TAG)-arm64 --os linux --arch arm64
2424
docker manifest annotate inlets/inlets-operator:$(TAG) inlets/inlets-operator:$(TAG)-armhf --os linux --arch arm --variant v6
25-
docker manifest push inlets/inlets-operator:$(TAG)
25+
docker manifest push -p inlets/inlets-operator:$(TAG)
2626

2727
test:
2828
go test ./...

0 commit comments

Comments
 (0)