Add missing environment variables
This commit is contained in:
parent
3b6bfc639a
commit
4a817fafea
2 changed files with 13 additions and 2 deletions
|
|
@ -2,12 +2,23 @@ when:
|
||||||
- event: push
|
- event: push
|
||||||
|
|
||||||
services:
|
services:
|
||||||
- image: postgres:15
|
- name: postgres
|
||||||
|
image: postgres:15
|
||||||
|
environment:
|
||||||
|
POSTGRES_NAME: newsreader
|
||||||
|
POSTGRES_USER: newsreader
|
||||||
- image: memcached:1.5.22
|
- image: memcached:1.5.22
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: python tests
|
- name: python tests
|
||||||
image: python:3.11
|
image: python:3.11
|
||||||
|
environment:
|
||||||
|
DJANGO_SETTINGS_MODULE: "newsreader.conf.gitlab"
|
||||||
|
DJANGO_SECRET_KEY: sekrit
|
||||||
|
POSTGRES_HOST: postgres
|
||||||
|
POSTGRES_DB: newsreader
|
||||||
|
POSTGRES_NAME: newsreader
|
||||||
|
POSTGRES_USER: newsreader
|
||||||
commands:
|
commands:
|
||||||
- pip install uv
|
- pip install uv
|
||||||
- uv sync --extra testing --extra ci
|
- uv sync --extra testing --extra ci
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,7 @@ CACHES = {
|
||||||
|
|
||||||
# Project settings
|
# Project settings
|
||||||
VERSION = get_current_version()
|
VERSION = get_current_version()
|
||||||
ENVIRONMENT = "gitlab"
|
ENVIRONMENT = "ci"
|
||||||
|
|
||||||
try:
|
try:
|
||||||
# Optionally use sentry integration
|
# Optionally use sentry integration
|
||||||
Loading…
Add table
Add a link
Reference in a new issue