forked from motioneye-project/motioneye
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
22 lines (18 loc) · 783 Bytes
/
.travis.yml
File metadata and controls
22 lines (18 loc) · 783 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
dist: trusty
sudo: true
notifications:
email:
recipients:
- ccrisan@gmail.com
- himself@kleini.org
on_failure: always
env:
- TARGET=amd64 EXT=""
- TARGET=armhf EXT=".armv7-armhf"
script:
- docker info
- docker run --rm --privileged multiarch/qemu-user-static:register --reset
- docker build --build-arg VCS_REF=$TRAVIS_COMMIT --build-arg BUILD_DATE=$(date +"%Y-%m-%dT%H:%M:%SZ") -t $DOCKER_REPO:$TRAVIS_BRANCH-$TARGET -f extra/Dockerfile${EXT} .
- docker run --rm $DOCKER_REPO:$TRAVIS_BRANCH-$TARGET uname -a
- 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then echo $DOCKER_PASSWORD | docker login -u "$DOCKER_USERNAME" --password-stdin; fi'
- 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then docker push $DOCKER_REPO:$TRAVIS_BRANCH-$TARGET; fi'