From e6ab7595694a902cba57343cdf3067168d7ec496 Mon Sep 17 00:00:00 2001 From: Ivan Skvortsov Date: Tue, 15 Aug 2023 18:13:47 +0300 Subject: [PATCH] changed .env path to infra/.env --- .github/workflows/deploy_stage.yaml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/deploy_stage.yaml b/.github/workflows/deploy_stage.yaml index 54ba389..6c27c28 100644 --- a/.github/workflows/deploy_stage.yaml +++ b/.github/workflows/deploy_stage.yaml @@ -88,18 +88,18 @@ jobs: port: ${{ secrets.SSH_PORT }} script: | cd ${{ env.DEPLOY_PATH }} - rm -f .env - touch .env - echo DJANGO_SECRET_KEY=$'${{ secrets.DJANGO_SECRET_KEY }}' >> .env - echo DJANGO_ALLOWED_HOSTS=${{ secrets.DJANGO_ALLOWED_HOSTS }} >> .env - echo CSRF_TRUSTED_ORIGINS=${{ secrets.CSRF_TRUSTED_ORIGINS }} >> .env - echo DJANGO_DEBUG=${{ secrets.DJANGO_DEBUG }} >> .env + rm -f infra/.env + touch infra/.env + echo DJANGO_SECRET_KEY=$'${{ secrets.DJANGO_SECRET_KEY }}' >> infra/.env + echo DJANGO_ALLOWED_HOSTS=${{ secrets.DJANGO_ALLOWED_HOSTS }} >> infra/.env + echo CSRF_TRUSTED_ORIGINS=${{ secrets.CSRF_TRUSTED_ORIGINS }} >> infra/.env + echo DJANGO_DEBUG=${{ secrets.DJANGO_DEBUG }} >> infra/.env - echo POSTGRES_DB=${{ secrets.POSTGRES_DB }} >> .env - echo POSTGRES_USER=${{ secrets.POSTGRES_USER }} >> .env - echo POSTGRES_PASSWORD=${{ secrets.POSTGRES_PASSWORD }} >> .env - echo POSTGRES_HOST=${{ secrets.POSTGRES_HOST }} >> .env - echo POSTGRES_PORT=${{ secrets.POSTGRES_PORT }} >> .env + echo POSTGRES_DB=${{ secrets.POSTGRES_DB }} >> infra/.env + echo POSTGRES_USER=${{ secrets.POSTGRES_USER }} >> infra/.env + echo POSTGRES_PASSWORD=${{ secrets.POSTGRES_PASSWORD }} >> infra/.env + echo POSTGRES_HOST=${{ secrets.POSTGRES_HOST }} >> infra/.env + echo POSTGRES_PORT=${{ secrets.POSTGRES_PORT }} >> infra/.env sudo docker image prune -f sudo docker pull ${{ env.REGISTRY }}/${{ env.REP_OWNER }}/${{ env.IMAGE_NAME }}:latest