changed woodpecker image
rodzic
b1ded032cd
commit
9b1b21adb9
|
@ -1,19 +1,19 @@
|
|||
steps:
|
||||
build:
|
||||
image: debian
|
||||
image: docker:24.0.6
|
||||
secrets: []
|
||||
commands:
|
||||
- docker-compose -f artel/docker-compose-test.yml build
|
||||
- docker compose -f artel/docker-compose-test.yml build
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
when:
|
||||
event: pull_request
|
||||
branch: ${CI_REPO_DEFAULT_BRANCH}
|
||||
test:
|
||||
image: debian
|
||||
image: docker:24.0.6
|
||||
secrets: []
|
||||
commands:
|
||||
- docker-compose -f artel/docker-compose-test.yml run --rm test_comfy
|
||||
- docker compose -f artel/docker-compose-test.yml run --rm test_comfy
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
when:
|
||||
|
|
|
@ -4,14 +4,12 @@ services:
|
|||
image: postgres
|
||||
restart: always
|
||||
environment:
|
||||
- POSTGRES_ROOT_PASSWORD
|
||||
- POSTGRES_USER
|
||||
- POSTGRES_PASSWORD
|
||||
- POSTGRES_DB
|
||||
- POSTGRES_ROOT_PASSWORD=password
|
||||
- POSTGRES_USER=comfy
|
||||
- POSTGRES_PASSWORD=password
|
||||
- POSTGRES_DB=comfy_shop
|
||||
volumes:
|
||||
- ../postgres/:/var/lib/postgresql
|
||||
env_file:
|
||||
- .env
|
||||
test_comfy:
|
||||
depends_on:
|
||||
- test_db
|
||||
|
@ -25,7 +23,5 @@ services:
|
|||
- SECRET_KEY=RandomKey
|
||||
- DATABASE_URL=postgres://comfy:password@test_db/comfy_shop
|
||||
- DJANGO_SETTINGS_MODULE=artel.settings.tests
|
||||
env_file:
|
||||
- .env
|
||||
command:
|
||||
python manage.py test --noinput
|
||||
|
|
Ładowanie…
Reference in New Issue