Browse Source

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.
feature/python-error-tracking
Drew Larson 8 years ago
committed by GitHub
parent
commit
65e71becf4
  1. 9
      .travis.yml
  2. 4
      Dockerfile
  3. 15
      shippable.yml

9
.travis.yml

@ -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;

4
Dockerfile

@ -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

15
shippable.yml

@ -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
Loading…
Cancel
Save