Compare commits
2 commits
823fe53e22
...
7319a738f4
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7319a738f4 | ||
|
|
640c75e499 |
4 changed files with 8 additions and 7 deletions
|
|
@ -22,11 +22,12 @@ jobs:
|
|||
username: ${{ secrets.REGISTRY_USER }}
|
||||
password: ${{ secrets.REGISTRY_TOKEN }}
|
||||
|
||||
- name: Build image
|
||||
run: |
|
||||
docker build -t git.sinfonie.org/sinfonie/photo26:${{ steps.meta.outputs.TAG }} .
|
||||
|
||||
- name: Push image
|
||||
- name: Build and push image
|
||||
run: |
|
||||
docker build \
|
||||
-t git.sinfonie.org/sinfonie/photo26:${{ steps.meta.outputs.TAG }} \
|
||||
-t git.sinfonie.org/sinfonie/photo26:latest \
|
||||
.
|
||||
docker push git.sinfonie.org/sinfonie/photo26:${{ steps.meta.outputs.TAG }}
|
||||
docker push git.sinfonie.org/sinfonie/photo26:latest
|
||||
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ RUN apt-get update && apt-get install -y gettext && rm -rf /var/lib/apt/lists/*
|
|||
|
||||
COPY . .
|
||||
|
||||
RUN python manage.py compilemessages
|
||||
RUN SECRET_KEY=dummy python manage.py compilemessages
|
||||
|
||||
# Create volume mount points
|
||||
RUN mkdir -p /app/media /app/static /app/data
|
||||
|
|
|
|||
|
|
@ -3,5 +3,6 @@ set -e
|
|||
|
||||
python manage.py collectstatic --noinput
|
||||
python manage.py migrate --noinput
|
||||
python manage.py loaddata initial
|
||||
python manage.py create_default_admin
|
||||
exec gunicorn photo21.wsgi:application --bind 0.0.0.0:8000 --workers 3
|
||||
|
|
|
|||
|
|
@ -235,7 +235,6 @@ WHITENOISE_MANIFEST_STRICT = False
|
|||
|
||||
LOCALE_PATHS = [os.path.join(BASE_DIR, "photo21/locale")]
|
||||
|
||||
FIXTURE_DIRS = [os.path.join(BASE_DIR, "photo21/fixtures")]
|
||||
|
||||
# Do not send email during debug
|
||||
# By default Django sends mails to localhost:25 without authentification
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue