diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..e291d78 --- /dev/null +++ b/.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; \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 423c036..5769a56 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,8 +6,8 @@ RUN mkdir /code WORKDIR /code RUN mkdir requirements ADD bikeshop_project /code -ADD requirements /code/requirements/base.txt -ADD requirements /code/requirements/production.txt +ADD requirements/base.txt /code/requirements/base.txt +ADD requirements/production.txt /code/requirements/production.txt RUN pip install -r requirements/production.txt RUN npm cache clean ADD ./bikeshop_project/bower.json bower.json diff --git a/shippable.yml b/shippable.yml deleted file mode 100644 index 8e0bd98..0000000 --- a/shippable.yml +++ /dev/null @@ -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 \ No newline at end of file