-
Notifications
You must be signed in to change notification settings - Fork 55
/
.travis.yml
49 lines (49 loc) · 2.1 KB
/
.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
sudo: required
dist: focal
services:
- docker
- mongodb
language:
- go
- minimal
go:
- 1.21.x
cache:
directories:
- $GOPATH/pkg/mod
before_install:
- wget -qO - https://www.mongodb.org/static/pgp/server-4.4.asc | sudo apt-key add -
- echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/4.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.4.list
- sudo apt-get update -yq
- sudo apt-get install apt-transport-https ca-certificates mongodb-org -y
- sudo update-ca-certificates
script:
- make all
after_success:
- if [ "${TRAVIS_BRANCH}" == "master" ] && [ "${TRAVIS_PULL_REQUEST}" == "false" ]; then
echo "${DOCKER_PASS}" | docker login -u="${DOCKER_USER}" --password-stdin;
make container;
sudo docker tag "${DOCKER_HUB_REPO}/torpedo:${DOCKER_HUB_TAG}" "${DOCKER_HUB_REPO}/torpedo:${TRAVIS_BRANCH}";
sudo docker push "${DOCKER_HUB_REPO}/torpedo:${DOCKER_HUB_TAG}";
sudo docker push "${DOCKER_HUB_REPO}/torpedo:${TRAVIS_BRANCH}";
make container-pds;
sudo docker tag "${DOCKER_HUB_REPO}/torpedo-pds:${DOCKER_HUB_TAG}" "${DOCKER_HUB_REPO}/torpedo-pds:${TRAVIS_BRANCH}";
sudo docker push "${DOCKER_HUB_REPO}/torpedo-pds:${DOCKER_HUB_TAG}";
sudo docker push "${DOCKER_HUB_REPO}/torpedo-pds:${TRAVIS_BRANCH}";
make container-backup;
sudo docker tag "${DOCKER_HUB_REPO}/torpedo-backup:${DOCKER_HUB_TAG}" "${DOCKER_HUB_REPO}/torpedo-backup:${TRAVIS_BRANCH}";
sudo docker push "${DOCKER_HUB_REPO}/torpedo-backup:${DOCKER_HUB_TAG}";
sudo docker push "${DOCKER_HUB_REPO}/torpedo-backup:${TRAVIS_BRANCH}";
make container-longevity;
sudo docker tag "${DOCKER_HUB_REPO}/torpedo-longevity:${DOCKER_HUB_TAG}" "${DOCKER_HUB_REPO}/torpedo-longevity:${TRAVIS_BRANCH}";
sudo docker push "${DOCKER_HUB_REPO}/torpedo-longevity:${DOCKER_HUB_TAG}";
sudo docker push "${DOCKER_HUB_REPO}/torpedo-longevity:${TRAVIS_BRANCH}";
fi
notifications:
email:
recipients:
- aditya@portworx.com
- piyush@portworx.com
- harsh@portworx.com
on_success: change
on_failure: always