We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 65e1567 commit 50ec712Copy full SHA for 50ec712
.github/workflows/deploy.yml
@@ -32,6 +32,8 @@ jobs:
32
file: production.Dockerfile
33
platforms: linux/arm64
34
push: true
35
+ build-args: |
36
+ ENV=${{ vars.ENV }}
37
tags: |
38
${{ secrets.DOCKERHUB_USERNAME }}/${{ github.event.repository.name }}:${{ github.sha }}
39
${{ secrets.DOCKERHUB_USERNAME }}/${{ github.event.repository.name }}:latest
production.Dockerfile
@@ -17,8 +17,8 @@ ENV PYTHONDONTWRITEBYTECODE=1
17
ENV PYTHONUNBUFFERED=1
18
19
# Set Django settings module
20
-ENV DJANGO_SETTINGS_MODULE=todo_project.settings.production
21
-ENV ENV=PRODUCTION
+ARG ENV=production
+ENV ENV=${ENV}
22
23
WORKDIR /app
24
0 commit comments