-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
33 lines (26 loc) · 926 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
sudo: required
language: go
go:
- 1.12.x
services:
- docker
addons:
apt:
packages:
- docker-ce
env:
global:
- SDK_VERSION="0.7.0"
before_install:
- curl -Lo operator-sdk https://github.com/operator-framework/operator-sdk/releases/download/v${SDK_VERSION}/operator-sdk-v${SDK_VERSION}-x86_64-linux-gnu && chmod +x operator-sdk && mv operator-sdk $GOPATH/bin/
script:
- make build
after_success:
- if [ ! -s "$TRAVIS_TAG" ] ; then
docker tag sinoreps/cmpp-operator:latest sinoreps/cmpp-operator:$TRAVIS_TAG;
echo $DOCKER_PASSWORD | docker login -u=$DOCKER_USERNAME --password-stdin;
docker push sinoreps/cmpp-operator:$TRAVIS_TAG;
docker tag sinoreps/cmpp-operator:latest quay.io/sinoreps/cmpp-operator:$TRAVIS_TAG;
echo $QUAY_PASSWORD | docker login -u=$QUAY_USERNAME --password-stdin quay.io;
docker push quay.io/sinoreps/cmpp-operator:$TRAVIS_TAG;
fi