From 98329341907a83a0197e4c64579ad19399d3b63c Mon Sep 17 00:00:00 2001 From: Norma Driske Date: Mon, 30 Dec 2024 23:59:48 +0100 Subject: [PATCH] Remove env settings --- .github/workflows/docker-build-push.yaml | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/.github/workflows/docker-build-push.yaml b/.github/workflows/docker-build-push.yaml index 9d8ae4f..693ca70 100644 --- a/.github/workflows/docker-build-push.yaml +++ b/.github/workflows/docker-build-push.yaml @@ -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/login-action@v2 with: @@ -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