-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
32 lines (28 loc) · 854 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
#
# Travis-CI.org configuration file
#
# Orchestrates the Travis build of a Docker manifest for Docker Hub.
# https://docs.travis-ci.com/user/docker/
#
# Setup environment for Docker builds.
language: minimal
sudo: required
# Enable Docker experimental features, to be able to use the "manifest" command.
addons:
apt:
packages:
- docker-ce
before_install:
- mkdir -p ~/.docker
- echo '{"experimental":"enabled"}' > ~/.docker/config.json
- docker version
# Create and test Docker manifest.
script:
- ./manifest.sh -b
- docker run --detach --restart=unless-stopped --net=host --cap-add=NET_ADMIN --name=flic renemarc/balena-flic:latest
- sleep 5
- docker logs flic
# Deploy manifest to Docker Hub.
after_success:
- echo "$DOCKER_PASSWORD" | docker login --username "$DOCKER_USERNAME" --password-stdin
- ./manifest.sh -p