moving the env variables
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 5m55s

This commit is contained in:
2026-03-17 10:13:24 +00:00
parent b611d41e8a
commit c5b7e9dcde
2 changed files with 8 additions and 3 deletions
+3 -3
View File
@@ -81,9 +81,9 @@ jobs:
uses: docker/build-push-action@v6
with:
push: true
env: |
ALLOWED_HOSTS: 'django.tryton.geeraert.eu'
DEBUG: 'True'
build-args: |
ALLOWED_HOSTS='django.tryton.geeraert.eu'
DEBUG='True'
tags: |
gitea.tryton.geeraert.eu/pi-ux-ce/django-python:latest
gitea.tryton.geeraert.eu/pi-ux-ce/django-python:${{ env.next_version }}
+5
View File
@@ -4,6 +4,11 @@ ENV PYTHONUNBUFFERED 1
#ENV ALLOWED_HOSTS 'django.tryton.geeraert.eu'
#ENV DEBUG 'True'
ARG ALLOWED_HOSTS
ARG DEBUG
ENV ALLOWED_HOSTS=$ALLOWED_HOSTS
ENV DEBUG=$DEBUG
WORKDIR /code/
# Copy only the requirements file first (Changes infrequently)