Verified Commit 6a7c806d authored by Georg Krause's avatar Georg Krause
Browse files

Disable building of branch specific image for api tests

parent 3fe020f1
......@@ -141,7 +141,7 @@ test_api:
- postgres:11
- redis:5
stage: test
image: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME
image: $CI_REGISTRY/funkwhale/backend-test-docker:latest
cache:
key: "$CI_PROJECT_ID__pip_cache"
paths:
......@@ -151,11 +151,10 @@ test_api:
FUNKWHALE_URL: "https://funkwhale.ci"
DJANGO_SETTINGS_MODULE: config.settings.local
POSTGRES_HOST_AUTH_METHOD: trust
CACHE_URL: "redis://redis:6379/0"
only:
- branches
before_script:
- apk add make git gcc python3-dev musl-dev python3-dev openssl-dev cargo
- apk add postgresql-dev py3-psycopg2 libldap libffi-dev make zlib-dev jpeg-dev openldap-dev
- cd api
- pip3 install -r requirements/base.txt
- pip3 install -r requirements/local.txt
......@@ -220,19 +219,6 @@ build_front:
tags:
- docker
build_backend:
stage: build
image: bash
before_script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
script:
- docker system prune -af
- cd api
- docker build -t $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME .
- docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME
tags:
- docker-build
pages:
stage: test
image: python:3.6
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment