Compare commits
3 commits
8a86ff9a4b
...
100773c958
Author | SHA1 | Date | |
---|---|---|---|
100773c958 | |||
530e6eaf47 | |||
0e0da7f658 |
3 changed files with 6 additions and 3 deletions
|
@ -24,4 +24,6 @@ jobs:
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v6
|
||||||
with:
|
with:
|
||||||
push: true
|
push: true
|
||||||
tags: code.edgarpierre.fr/${{ github.repository }}:${{ github.ref_name }}
|
tags: |
|
||||||
|
code.edgarpierre.fr/${{ github.repository }}:${{ github.ref_name }}
|
||||||
|
code.edgarpierre.fr/${{ github.repository }}:latest
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
services:
|
services:
|
||||||
nummi:
|
nummi:
|
||||||
image: code.edgarpierre.fr/edpibu/nummi:main
|
image: code.edgarpierre.fr/edpibu/nummi
|
||||||
container_name: nummi
|
container_name: nummi
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
ports:
|
ports:
|
||||||
|
|
|
@ -22,6 +22,7 @@ if CONFIG_PATH is not None:
|
||||||
|
|
||||||
# Build paths inside the project like this: BASE_DIR / 'subdir'.
|
# Build paths inside the project like this: BASE_DIR / 'subdir'.
|
||||||
MEDIA_CONF = CONFIG.get("media", {})
|
MEDIA_CONF = CONFIG.get("media", {})
|
||||||
|
STATIC_CONF = CONFIG.get("static", {})
|
||||||
BASE_DIR = Path(__file__).resolve().parent.parent
|
BASE_DIR = Path(__file__).resolve().parent.parent
|
||||||
MEDIA_ROOT = Path(MEDIA_CONF.get("root", "/var/lib/nummi"))
|
MEDIA_ROOT = Path(MEDIA_CONF.get("root", "/var/lib/nummi"))
|
||||||
MEDIA_URL = "media/"
|
MEDIA_URL = "media/"
|
||||||
|
@ -124,7 +125,7 @@ USE_TZ = True
|
||||||
# https://docs.djangoproject.com/en/4.0/howto/static-files/
|
# https://docs.djangoproject.com/en/4.0/howto/static-files/
|
||||||
|
|
||||||
STATIC_URL = "static/"
|
STATIC_URL = "static/"
|
||||||
STATIC_ROOT = "/srv/nummi"
|
STATIC_ROOT = STATIC_CONF.get("root", "/srv/nummi")
|
||||||
LOGIN_URL = "login"
|
LOGIN_URL = "login"
|
||||||
|
|
||||||
# Default primary key field type
|
# Default primary key field type
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue