forked from yeti-switch/yeti-lb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
42 lines (42 loc) · 1.79 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
sudo: required
services:
- docker
git:
depth: false
env:
global:
secure: RftkhfFw+9LpTLbU648C76UlS9bf3+QMyFQol5/MoSmwhjHv5km12WP2Qeziwcu4I0ZeRfCP7guFl9uYe+eNOvEmsZI0fgN0nX2vvFYSvWB4qsNN6ocVZ0UT7xXKyBUBhpR7NrHm6Lmz5ILFdlZ7OBZXYO/dXBxKaCCo40xdrT6JpCfHfMe5VjT5yHkKmGrudSdEBVCGtg4aWc2bNKw84RaaSZAjrXBki4klGJUBo4TSLPyzfqNr2N7eGE4ovxPQx3ePMxFtBGgeKVUysYIsyN97Q1dRbvtpdgsDTaNoK2WNlfd1h8yEOZ/GBmkbrORAmUPt1iTyNkw/hAQOUdDL+4wPvhoHWZo8qkOzcAzVNM5ilkwze0/4hQ/lhaWLlJ7XN3os/DelISJCPsSq20upDOw/G2eb7BEQMu9+2JuwCvTZguL9WD8DE/kONSSj/LYCfJpIeWNWjC+EWmy5HLrLmiZj6urZBIQQDxHpHekFMg1FwO6eiXvzVnjcsv96Sx+3Xzj24UyN/YlH+pic1dnzsMWYlQMCkr32kDuMxkNnfF7LG/OhtaNlLFtSPr+xaqqktCdTfOclQTcE3RmMocc92V1OrwNnfa/CIoFxllFgyGSP1P81a/sU9xaWGav/m27Ob8deWlTkQ2BDjGMonS/FSH8tCA7qbqJDplrERAjrbY8=
stages:
- stable package
- nightly package
jobs:
include:
- stage: stable package
if: branch != master OR tag =~ ^.*$
env: CACHE_NAME=stretch_package
name: Stable Stretch Package
script: &1
- docker build -t yeti-lb -f ./ci/build_stretch.Dockerfile .
- docker run --name yeti-lb yeti-lb && docker commit yeti-lb yeti-lb:built
deploy:
skip_cleanup: true
provider: script
script: docker run --name yeti-lb-deploy yeti-lb:built ci/deploy.sh "$API_ENDPOINT"
stretch "${TRAVIS_TAG:0:3}" main /build/*.deb
on:
tags: true
condition: "$TRAVIS_TAG != *-master*"
repo: yeti-switch/yeti-lb
- stage: nightly package
if: branch = master
env: CACHE_NAME=stretch_package
name: Nightly Stretch Package
script: *1
deploy:
skip_cleanup: true
provider: script
script: docker run --name yeti-lb-deploy yeti-lb:built ci/deploy.sh "$API_ENDPOINT"
stretch nightly main /build/*.deb
on:
all_branches: true
repo: yeti-switch/yeti-lb