Skip to content

Commit

Permalink
ci(actions): 🐛 Change env to be an actual .env
Browse files Browse the repository at this point in the history
  • Loading branch information
Nudelsuppe42 committed Sep 8, 2024
1 parent 0c5d50b commit 2fa8ebe
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,15 @@ jobs:
echo "${{ github.token }}" | docker login https://ghcr.io -u ${GITHUB_ACTOR} --password-stdin
- name: Create env file
run: |
touch apps/frontend/build.env.local
echo KEYCLOAK_URL="https://auth.buildtheearth.net/realms/website" >> apps/frontend/build.env.local
echo KEYCLOAK_ID="frontend" >> build.env.local
echo KEYCLOAK_SECRET="${{ secrets.KEYCLOAK_SECRET }}" >> apps/frontend/build.env.local
echo NEXTAUTH_URL="https://buildtheearth.net" >> apps/frontend/build.env.local
echo NEXTAUTH_SECRET="${{ secrets.NEXTAUTH_SECRET }}" >> apps/frontend/build.env.local
echo NEXT_PUBLIC_API_URL="https://api.buildtheearth.net/api/v1" >> apps/frontend/build.env.local
echo NEXT_PUBLIC_MAPBOX_TOKEN="${{ secrets.MAPBOX_TOKEN }}" >> apps/frontend/build.env.local
echo PORT=3000 >> apps/frontend/build.env.local
touch apps/frontend/.env
echo KEYCLOAK_URL="https://auth.buildtheearth.net/realms/website" >> apps/frontend/.env
echo KEYCLOAK_ID="frontend" >> .env
echo KEYCLOAK_SECRET="${{ secrets.KEYCLOAK_SECRET }}" >> apps/frontend/.env
echo NEXTAUTH_URL="https://buildtheearth.net" >> apps/frontend/.env
echo NEXTAUTH_SECRET="${{ secrets.NEXTAUTH_SECRET }}" >> apps/frontend/.env
echo NEXT_PUBLIC_API_URL="https://api.buildtheearth.net/api/v1" >> apps/frontend/.env
echo NEXT_PUBLIC_MAPBOX_TOKEN="${{ secrets.MAPBOX_TOKEN }}" >> apps/frontend/.env
echo PORT=3000 >> apps/frontend/.env
- name: Build the Docker image
run: docker build . --file apps/frontend/Dockerfile --tag ghcr.io/buildtheearth/website-frontend:$(git rev-parse --short HEAD) --tag ghcr.io/buildtheearth/website-frontend:latest
- name: Docker push tag
Expand Down

0 comments on commit 2fa8ebe

Please sign in to comment.