commit
c199847b90
4 changed files with 36 additions and 1 deletions
18
.travis.yml
18
.travis.yml
|
@ -1,3 +1,21 @@
|
||||||
language: node_js
|
language: node_js
|
||||||
node_js:
|
node_js:
|
||||||
- lts/*
|
- lts/*
|
||||||
|
services:
|
||||||
|
- docker
|
||||||
|
before_script:
|
||||||
|
- npm run build
|
||||||
|
- docker build -t cbase/infoscreens:latest .
|
||||||
|
- docker tag cbase/infoscreens:latest "cbase/infoscreens:${TRAVIS_BUILD_NUMBER}"
|
||||||
|
- docker-compose up -d
|
||||||
|
- docker-compose ps
|
||||||
|
deploy:
|
||||||
|
- provider: script
|
||||||
|
script: docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD" && docker push "cbase/infoscreens:latest" && docker push "cbase/infoscreens:${TRAVIS_BUILD_NUMBER}"
|
||||||
|
on:
|
||||||
|
branch: master
|
||||||
|
repo: c-base/infoscreens
|
||||||
|
env:
|
||||||
|
global:
|
||||||
|
- secure: R0ZZ7VmLdTbVtFqB36KtxSn5S1noZH0D577atVfW+CSL35QLcyofoFo9xg223T51yZJyZMFOvxLuD7LZDL4FSBdoC6jfHQ7sluu/ZOCGEfKhxunjzhOjdIlL/zX7iBk03u5QI6qah+iIOohoqb0294qyNRQWa57Ut5lkeqJnsD9fsXrn0eqcC+Mbef+MLDqHWL/icXGjzq6GlKfaxd7sGK+UPCs8vfoyyGPkXeL97XjCJXt/RqwNhOJR3cMNko6xdIB1yBlJubaY7NgFfMTe8IxSPJGNPMaongrvT9/xjQdpBXd0Txi+LMCr4pjEHjhYj5DuXz40V9SS6LMNWQBUrEBr/tUyK4GdgGVcwXnrsTR4LPt2ivbg1hxI6gmK2n+Cj9l52JXAmTlN85174JXyRrXmRm+74A/uep6wZ6CnroBgunV24//b29A+Bbin6vpfqGvvQUlCuajnr6RBpovq/vQGHL1J8njnSt496V6BU2oD6qDx+EjW1vE4xXKKkB0XOMbiKUUh+3JUh48pR4f6uo7YSGRVjh2URR89q4C1ri80zxyEonTTFc2PM9qIikgvBTrM/XpDIGfsU9LJkwkd6sANTHlwv83S1MHM78dB0ZIgejnRSGnI6YD3GSzmQvsQcEAWwjoacAYGE5AYkkkN0GEzj96qSFdCZT/KBJ42YiU=
|
||||||
|
- secure: KQNjlnKQ0lzH8r0yKBFqqNuVJnlcrROol9qs9Hvd91xwA3WeLAqaAPi4BwOulcWmdEl+KvzTKN1rfBbZ2dGMHN2T46VmXmwLfgQV34BLyr4l6uYu92D9t0Qg7i/euGvNq7F3fCK6ZdrKtcf5McPm0Q6mhTEg38jHvwSQaW4DD0ElET0sVzBZushQeD4wehjTh65yTJ7JNuMPBtXOogMvIQugkEH+i7Wmi1vrPKaxNLp6OYE1krbnm+sk9dM0CIxCO+OC2g8DChjYgIe+hw3G0zdyAcb0Jw0Hx/U8e90hIFG5UjgYvYDib3ifYoCe8GacT+JUMrRRSG9oM413X5E03f/W1R9tyJ0fh2xbiBhd0U26rwGKuta6OFP+QgQP1JTvlVk1iz+qwhlAsc7p98qyM1BNWNSlnfOBsHAGwY2wYwBPwKy4I+gKZ9HmBdVDrk6CGB6Qvgp0S6sGxJ6LIV4jmK0K9WswbckZLQXFpaxI0lPn/xfKwldS7OLIqxkPMGYbfo08axiJkecX/Vlw/0FmOkqk2SIchqRRi7CnhjOwOBLUuYeF1OzPw61dLUpB05gLKEx3jHqIawtSjPQVY8XZiWnPtmO5yIP4RNQniP43Oaf/0mW7up1+ZjN+/jx0reuhR33+EkCCEmzhB+p1P9LxEXnRpr1RF8p1y47b/JXfEqw=
|
||||||
|
|
2
Dockerfile
Normal file
2
Dockerfile
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
FROM nginx
|
||||||
|
COPY . /usr/share/nginx/html
|
|
@ -1,4 +1,4 @@
|
||||||
c-base information displays [![Build Status](https://travis-ci.org/c-base/infoscreens.svg?branch=master)](https://travis-ci.org/c-base/infoscreens) [![Greenkeeper badge](https://badges.greenkeeper.io/c-base/infoscreens.svg)](https://greenkeeper.io/)
|
c-base information displays [![Build Status](https://travis-ci.org/c-base/infoscreens.svg?branch=master)](https://travis-ci.org/c-base/infoscreens) [![Greenkeeper badge](https://badges.greenkeeper.io/c-base/infoscreens.svg)](https://greenkeeper.io/) [![Docker Hub](https://img.shields.io/docker/pulls/cbase/infoscreens.svg)](https://hub.docker.com/r/cbase/infoscreens/)
|
||||||
===========================
|
===========================
|
||||||
|
|
||||||
[c-base](https://c-base.org/) has a set of information displays located around the station, showing various statistics, current events, and notifications.
|
[c-base](https://c-base.org/) has a set of information displays located around the station, showing various statistics, current events, and notifications.
|
||||||
|
|
15
docker-compose.yml
Normal file
15
docker-compose.yml
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
version: '2'
|
||||||
|
services:
|
||||||
|
mqtt-infoscreens:
|
||||||
|
image: toke/mosquitto
|
||||||
|
ports:
|
||||||
|
- '1882:9001'
|
||||||
|
- '1883:1883'
|
||||||
|
infoscreens:
|
||||||
|
image: cbase/infoscreens
|
||||||
|
ports:
|
||||||
|
- '8080:80'
|
||||||
|
links:
|
||||||
|
- mqtt-infoscreens
|
||||||
|
volumes:
|
||||||
|
- .:/usr/share/nginx/html
|
Loading…
Reference in a new issue