Skip to content

Commit

Permalink
env file error
Browse files Browse the repository at this point in the history
  • Loading branch information
jarrodlilkendey committed Mar 12, 2024
1 parent ac5026d commit d13da37
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ jobs:
- name: create production .env
run: |
touch .env.production.local
echo CYPRESS_baseUrl=${{ secrets.PROD_NEXTAUTH_URL }} >> .env.production.local
echo DATABASE_URL=${{ secrets.PROD_DATABASE_URL }} >> .env.production.local
echo NEXTAUTH_SECRET=${{ secrets.PROD_NEXTAUTH_SECRET }} >> .env.production.local
echo NEXTAUTH_URL=${{ secrets.PROD_NEXTAUTH_URL }} >> .env.production.local
Expand All @@ -69,5 +68,10 @@ jobs:
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Docker Build
run: docker compose build #docker compose up --build --force-recreate
env:
DATABASE_URL: ${{ secrets.PROD_DATABASE_URL }}
NEXTAUTH_SECRET: ${{ secrets.PROD_NEXTAUTH_SECRET }}
NEXTAUTH_URL: ${{ secrets.PROD_NEXTAUTH_URL }}
NEXT_PUBLIC_BASE_URL: ${{ secrets.PROD_NEXT_PUBLIC_BASE_URL }}
- name: Docker Push to Docker Hub
run: docker push jarrodlilkendey/168-hours-nextjs-docker:latest

0 comments on commit d13da37

Please sign in to comment.