sforkowany z mtyton/comfy
refactor CI pipeline
rodzic
ba02d80d28
commit
3f04a95cc5
|
@ -14,3 +14,6 @@ steps:
|
|||
tags:
|
||||
- ${CI_COMMIT_TAG}
|
||||
- latest
|
||||
|
||||
depends_on:
|
||||
- test
|
|
@ -0,0 +1,13 @@
|
|||
when:
|
||||
event: tag
|
||||
branch: ${CI_REPO_DEFAULT_BRANCH}
|
||||
|
||||
steps:
|
||||
test:
|
||||
image: docker:cli
|
||||
commands:
|
||||
- docker compose -f ./artel/docker-compose-test.yml run test_comfy
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
secrets: [uid, gid, database_url, postgres_root_password, postgres_user, postgres_password, postgres_db, django_settings_module]
|
||||
|
|
@ -8,8 +8,6 @@ services:
|
|||
- POSTGRES_USER
|
||||
- POSTGRES_PASSWORD
|
||||
- POSTGRES_DB
|
||||
# volumes:
|
||||
# - ../postgres/:/var/lib/postgresql
|
||||
env_file:
|
||||
- .env
|
||||
healthcheck:
|
||||
|
@ -29,8 +27,11 @@ services:
|
|||
volumes:
|
||||
- ./:/app
|
||||
environment:
|
||||
- UID
|
||||
- GID
|
||||
- SECRET_KEY
|
||||
- DATABASE_URL
|
||||
- DJANGO_SETTINGS_MODULE
|
||||
env_file:
|
||||
- .env
|
||||
command:
|
||||
|
|
Ładowanie…
Reference in New Issue