1
0
mirror of https://github.com/fspc/workstand.git synced 2025-03-03 12:33:24 -05:00

Fix-up for CI (#26)

* Update path.

* Add hint to label.

* Add shipable config.

* Move.

* Add docker integration.

* Not needed.

* Specify host.

* Tag image.

* add push

* Try Travis.

* Fix dockerfile.

* Update.

* Use generic language.

* Only push when master.
This commit is contained in:
Drew Larson 2017-01-23 19:44:49 -06:00 committed by GitHub
parent 2815f2b035
commit 65e71becf4
3 changed files with 11 additions and 17 deletions

9
.travis.yml Normal file
View File

@ -0,0 +1,9 @@
language: generic
services:
- docker
before_install:
- docker build -t bcbc/workstand:production .
after_success:
- if [ "$TRAVIS_BRANCH" == "master" ]; then
docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD";
docker push bcbc/workstand:production;

View File

@ -6,8 +6,8 @@ RUN mkdir /code
WORKDIR /code WORKDIR /code
RUN mkdir requirements RUN mkdir requirements
ADD bikeshop_project /code ADD bikeshop_project /code
ADD requirements /code/requirements/base.txt ADD requirements/base.txt /code/requirements/base.txt
ADD requirements /code/requirements/production.txt ADD requirements/production.txt /code/requirements/production.txt
RUN pip install -r requirements/production.txt RUN pip install -r requirements/production.txt
RUN npm cache clean RUN npm cache clean
ADD ./bikeshop_project/bower.json bower.json ADD ./bikeshop_project/bower.json bower.json

View File

@ -1,15 +0,0 @@
# Language setting
language: python
# Version number
python:
- "3.6"
build:
cache: true
env:
- secure: stCGu2o9rdpGLek5SVL3d5+7XZw1aSbKV1F5c63M+xSDSvteK9B2/Qxjqc0FA5kigXAtpRdZIBp6/TrrIe3fNb6O77ATIZnIC19lAlxY9F80J5em1TkDSX8PRFoz3yuhNm/DpBYzytMjf57IQq4VlxLm3jms8hgCjMG2HeCKe9KqomUJ7hg7HBlPHnR/WqayQxnUnHkVe9MKKXxHjD2kL1Z4PFBM/fc5I5kNiJYhvmeoXPyvT8G6HKK9ZXG8Bw9OF/PtB7xI3/3ElqMEccHj+Ff66/a6rm5sMxbd2aOq8I0LTHXmONs+wsMniwcb1MIiO0Pc9sP9HbU0iGnnBrnmWA==
post_ci:
- docker commit $SHIPPABLE_CONTAINER_NAME bcbc/workstand:production
push:
- docker push drwlrsn/workstand:production