Skip to content

Commit

Permalink
Build docker image on ci server (#342)
Browse files Browse the repository at this point in the history
  • Loading branch information
eirsyl authored and warlo committed Nov 14, 2016
1 parent 559e713 commit 254f05c
Show file tree
Hide file tree
Showing 6 changed files with 49 additions and 26 deletions.
3 changes: 2 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,5 @@ lego/settings/local.py
lego/files
lego/db.sqlite
celerybeat.pid
docs/
docs/
.git/
45 changes: 45 additions & 0 deletions .drone.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
pipeline:
tests:
image: python:3.5
when:
event: push
environment:
- CASS_DRIVER_NO_CYTHON=1
- CASS_DRIVER_NO_EXTENSIONS=1
commands:
- pip install tox
- pip install -r requirements/test.txt
- make ci_settings

- python manage.py migrate
- python manage.py missing_migrations

- tox -e tests
- tox -e isort
- tox -e flake8
- tox -e coverage
- tox -e docs

docker:
image: plugins/docker
when:
branch: master
event: push
registry: https://registry.abakus.no
repo: registry.abakus.no/webkom/lego
tag: latest

slack:
image: plugins/slack
when:
status: [ success, failure ]
event: push
channel: lego

services:
database:
image: postgres:9.5
environment:
- POSTGRES_USER=lego
cache:
image: redis
1 change: 1 addition & 0 deletions .drone.yml.sig
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
eyJhbGciOiJIUzI1NiJ9.cGlwZWxpbmU6CiAgdGVzdHM6CiAgICBpbWFnZTogcHl0aG9uOjMuNQogICAgd2hlbjoKICAgICAgZXZlbnQ6IHB1c2gKICAgIGVudmlyb25tZW50OgogICAgICAtIENBU1NfRFJJVkVSX05PX0NZVEhPTj0xCiAgICAgIC0gQ0FTU19EUklWRVJfTk9fRVhURU5TSU9OUz0xCiAgICBjb21tYW5kczoKICAgICAgLSBwaXAgaW5zdGFsbCB0b3gKICAgICAgLSBwaXAgaW5zdGFsbCAtciByZXF1aXJlbWVudHMvdGVzdC50eHQKICAgICAgLSBtYWtlIGNpX3NldHRpbmdzCgogICAgICAtIHB5dGhvbiBtYW5hZ2UucHkgbWlncmF0ZQogICAgICAtIHB5dGhvbiBtYW5hZ2UucHkgbWlzc2luZ19taWdyYXRpb25zCgogICAgICAtIHRveCAtZSB0ZXN0cwogICAgICAtIHRveCAtZSBpc29ydAogICAgICAtIHRveCAtZSBmbGFrZTgKICAgICAgLSB0b3ggLWUgY292ZXJhZ2UKICAgICAgLSB0b3ggLWUgZG9jcwoKICBkb2NrZXI6CiAgICBpbWFnZTogcGx1Z2lucy9kb2NrZXIKICAgIHdoZW46CiAgICAgIGJyYW5jaDogbWFzdGVyCiAgICAgIGV2ZW50OiBwdXNoCiAgICByZWdpc3RyeTogaHR0cHM6Ly9yZWdpc3RyeS5hYmFrdXMubm8KICAgIHJlcG86IHJlZ2lzdHJ5LmFiYWt1cy5uby93ZWJrb20vbGVnbwogICAgdGFnOiBsYXRlc3QKCiAgc2xhY2s6CiAgICBpbWFnZTogcGx1Z2lucy9zbGFjawogICAgd2hlbjoKICAgICAgc3RhdHVzOiBbIHN1Y2Nlc3MsIGZhaWx1cmUgXQogICAgICBldmVudDogcHVzaAogICAgY2hhbm5lbDogbGVnbwoKc2VydmljZXM6CiAgZGF0YWJhc2U6CiAgICBpbWFnZTogcG9zdGdyZXM6OS41CiAgICBlbnZpcm9ubWVudDoKICAgICAgLSBQT1NUR1JFU19VU0VSPWxlZ28KICBjYWNoZToKICAgIGltYWdlOiByZWRpcw.IFpTpqtVX9_8Lbd9eZcTY9yeTnkylEaHlxu2AZWU8dc
20 changes: 0 additions & 20 deletions .frigg.yml

This file was deleted.

2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ RUN set -e \
&& apt-get autoremove -y \
&& apt-get clean \
&& pip install --no-cache -r requirements/prod.txt \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
4 changes: 0 additions & 4 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ whitelist_externals =
setenv =
DJANGO_SETTINGS_MODULE=lego.settings
PYTHONPATH = {toxinidir}:{toxinidir}
LC_ALL=en_US.UTF-8
LANG=en_US.UTF-8
CASS_DRIVER_NO_CYTHON=1
CASS_DRIVER_NO_EXTENSIONS=1
commands =
Expand All @@ -42,8 +40,6 @@ changedir =
docs
setenv =
PYTHONPATH = {toxinidir}:{toxinidir}/docs
LC_ALL=en_US.UTF-8
LANG=en_US.UTF-8
CASS_DRIVER_NO_CYTHON=1
CASS_DRIVER_NO_EXTENSIONS=1
deps=
Expand Down

0 comments on commit 254f05c

Please sign in to comment.