forked from hnw/docker-openwrt-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
27 lines (21 loc) · 1.28 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
sudo: required
services:
- docker
env:
global:
- TAGS="15.05.1-ar71xx 17.01-ar71xx 17.01-ramips-mt7620 17.01-bcm53xx"
- DOCKERHUB_USER=yhnw
- DOCKERHUB_REPO=openwrt-sdk
- secure: "bv3CmnHdtTaGohbHtbKQDw7Z4qawPF9zcxqQfJnW+/P7w7ETxFqMF/uEHfsbSMDuZ06Y26TC10IgS1ubevH9ATQawHxEpMZr7VsIaAV00tO0Yw9cklFtxL6laXFO9HODOKMCZZ73cpPqCXRRigKsG3+DGQmF61RmQWr41HhIFKsQf/LpFThDDgJ4ClvzhZ/54NlTB7rtrU7cXxihASmdpBdsv2MWs4vtvrTSrGUlftTm0bGm0TxLFcM9mpdBf++1r1JjvFvZ/DVr0tYBHiAQ+sUmdfoJ6yigLPSQTXsAazTpbDFHE+IwVEsmAalZToIr3I8/FqE4NJSPyrihsigmqf62LO4QSTw5BMcLaEh/QOTe5k+GJ7ZVM11ibXjKSlNvcCh6dTn5kAO7oy1mR6xOZAXZrgMwuHiClibXB/lcvNeKieWLw8mTcswYhLr5Wn6QvbrZNbHcorTFThwVxsjX8wr/VlFBxbTUifHKCGaDghmrA3yzWAL27X2EfAiCougMKeNDY2FeH2WKs1SY7bq8GAk3o6TvsDO5aj/yBWiUNwpd6xWTDE5SL9b5iy45+H0cdXjo3sM68c91+vVI+M3MOBRQpPk/2bW+hwQv8AqnM+USDLsdndjt/gfsmqElXSbuE8RaosmtI8DO7YYpcdUrvRqy9ugyxQcil5BAEeM9sFY="
before_install:
- docker version
- docker build -t $DOCKERHUB_USER/$DOCKERHUB_REPO:base -f Dockerfile.base .
script:
- for TAG in $TAGS; do
docker build -t $DOCKERHUB_USER/$DOCKERHUB_REPO:$TAG -f Dockerfile.$TAG .;
done
after_success:
- if [ "$TRAVIS_BRANCH" == "master" ]; then
docker login -u=$DOCKERHUB_USER -p=$DOCKERHUB_PASSWORD &&
docker push $DOCKERHUB_USER/$DOCKERHUB_REPO ;
fi