Skip to content

Commit 50ec712

Browse files
fix add env keys to docker (#108)
* fix: Correct formatting of environment variable assignments in deploy workflow * fix: Update environment variable handling in Docker configuration for deployment
1 parent 65e1567 commit 50ec712

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/deploy.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ jobs:
3232
file: production.Dockerfile
3333
platforms: linux/arm64
3434
push: true
35+
build-args: |
36+
ENV=${{ vars.ENV }}
3537
tags: |
3638
${{ secrets.DOCKERHUB_USERNAME }}/${{ github.event.repository.name }}:${{ github.sha }}
3739
${{ secrets.DOCKERHUB_USERNAME }}/${{ github.event.repository.name }}:latest

production.Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ ENV PYTHONDONTWRITEBYTECODE=1
1717
ENV PYTHONUNBUFFERED=1
1818

1919
# Set Django settings module
20-
ENV DJANGO_SETTINGS_MODULE=todo_project.settings.production
21-
ENV ENV=PRODUCTION
20+
ARG ENV=production
21+
ENV ENV=${ENV}
2222

2323
WORKDIR /app
2424

0 commit comments

Comments
 (0)