Skip to content

Commit

Permalink
Remove env settings
Browse files Browse the repository at this point in the history
  • Loading branch information
normade committed Dec 30, 2024
1 parent 134f48a commit 9832934
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions .github/workflows/docker-build-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,22 +24,6 @@ jobs:
env:
GITHUB_REF_NAME: ${{ github.ref_name }}

- name: Create .env File
run: |
echo "Creating .env file"
echo "PLATFORM=${{ vars.PLATFORM }}" >> .env
echo "DEBUG=${{ vars.DEBUG }}" >> .env
echo "ALLOWED_HOSTS=${{ secrets.ALLOWED_HOSTS }}" >> .env
echo "SECRET_KEY=${{ secrets.SECRET_KEY }}" >> .env
echo "AWS_ACCESS_KEY_ID=${{ secrets.AWS_ACCESS_KEY_ID }}" >> .env
echo "AWS_SECRET_ACCESS_KEY=${{ secrets.AWS_SECRET_ACCESS_KEY }}" >> .env
echo "DJANGO_SETTINGS_MODULE=${{ vars.DJANGO_SETTINGS_MODULE }}" >> .env
echo "DATABASE_URL=${{ secrets.DATABASE_URL }}" >> .env
echo "POSTGRES_USER=${{ secrets.POSTGRES_USER }}" >> .env
echo "POSTGRES_PASSWORD=${{ secrets.POSTGRES_PASSWORD }}" >> .env
echo "POSTGRES_DB=${{ secrets.POSTGRES_DB }}" >> .env
shell: bash

- name: Log in to GitHub Container Registry
uses: docker/#-action@v2
with:
Expand All @@ -49,8 +33,7 @@ jobs:

- name: Build Docker Image with docker compose
run: |
docker compose --env-file .env \
-f docker/compose.ci.yaml \
docker compose -f docker/compose.ci.yaml \
build --build-arg PLATFORM=prod
shell: bash

Expand Down

0 comments on commit 9832934

Please # to comment.