Skip to content
Snippets Groups Projects
Verified Commit 6a7c806d authored by Georg Krause's avatar Georg Krause
Browse files

Disable building of branch specific image for api tests

parent 3fe020f1
No related branches found
No related tags found
No related merge requests found
...@@ -141,7 +141,7 @@ test_api: ...@@ -141,7 +141,7 @@ test_api:
- postgres:11 - postgres:11
- redis:5 - redis:5
stage: test stage: test
image: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME image: $CI_REGISTRY/funkwhale/backend-test-docker:latest
cache: cache:
key: "$CI_PROJECT_ID__pip_cache" key: "$CI_PROJECT_ID__pip_cache"
paths: paths:
...@@ -151,11 +151,10 @@ test_api: ...@@ -151,11 +151,10 @@ test_api:
FUNKWHALE_URL: "https://funkwhale.ci" FUNKWHALE_URL: "https://funkwhale.ci"
DJANGO_SETTINGS_MODULE: config.settings.local DJANGO_SETTINGS_MODULE: config.settings.local
POSTGRES_HOST_AUTH_METHOD: trust POSTGRES_HOST_AUTH_METHOD: trust
CACHE_URL: "redis://redis:6379/0"
only: only:
- branches - branches
before_script: 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 - cd api
- pip3 install -r requirements/base.txt - pip3 install -r requirements/base.txt
- pip3 install -r requirements/local.txt - pip3 install -r requirements/local.txt
...@@ -220,19 +219,6 @@ build_front: ...@@ -220,19 +219,6 @@ build_front:
tags: tags:
- docker - 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: pages:
stage: test stage: test
image: python:3.6 image: python:3.6
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment