diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ddb260b4..eddaf057 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -21,10 +21,7 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 - - - name: create .env - run: echo "DB_USERNAME=postgres\nDB_PASSWORD=postgres\nDB_NAME=postgres\nDB_HOST=db" > .env - + - name: Login to GitHub Container Registry uses: docker/login-action@v3 with: @@ -34,8 +31,8 @@ jobs: - name: Build and push Docker images run: | - docker-compose build - docker-compose push + docker-compose build --env-file .env.exmaple + docker-compose push --env-file .env.exmaple - name: Cleanup if: always()