Skip to content

Commit

Permalink
[chore]update docker-compose
Browse files Browse the repository at this point in the history
  • Loading branch information
nathsouzadev committed Apr 22, 2024
1 parent 8b8c139 commit 656863d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
19 changes: 9 additions & 10 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,6 @@ on:
branches:
- main

env:
## Sets environment variable
NEXT_PUBLIC_CLERK_SIGN_IN_URL: /sign-in
NEXT_PUBLIC_CLERK_SIGN_UP_URL: /sign-up
NEXT_PUBLIC_CLERK_AFTER_SIGN_IN_URL: /dashboard
NEXT_PUBLIC_CLERK_AFTER_SIGN_UP_URL: /dashboard
CLERK_SECRET_KEY: ${{ secrets.CLERK_SECRET_KEY }}
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY: ${{ secrets.NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY }}
BRACH_NAME: ${{ github.ref_name }}

jobs:
lint:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -78,6 +68,15 @@ jobs:
node-version: ${{ matrix.node-version }}

- name: Build docker-composer
env:
## Sets environment variable
NEXT_PUBLIC_CLERK_SIGN_IN_URL: /sign-in
NEXT_PUBLIC_CLERK_SIGN_UP_URL: /sign-up
NEXT_PUBLIC_CLERK_AFTER_SIGN_IN_URL: /dashboard
NEXT_PUBLIC_CLERK_AFTER_SIGN_UP_URL: /dashboard
CLERK_SECRET_KEY: ${{ secrets.CLERK_SECRET_KEY }}
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY: ${{ secrets.NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY }}
BRACH_NAME: ${{ github.ref_name }}
run: docker-compose up -d

- name: Check running container
Expand Down
4 changes: 2 additions & 2 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ services:
build-args:
BRANCH_NAME: $BRANCH_NAME
environment:
- NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY: ${secrets.NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY}
- CLERK_SECRET_KEY: ${secrets.CLERK_SECRET_KEY}
- NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY: $NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY
- CLERK_SECRET_KEY: $CLERK_SECRET_KEY
- NEXT_PUBLIC_CLERK_SIGN_IN_URL: /sign-in
- NEXT_PUBLIC_CLERK_SIGN_UP_URL: /sign-up
- NEXT_PUBLIC_CLERK_AFTER_SIGN_IN_URL: /dashboard
Expand Down

0 comments on commit 656863d

Please sign in to comment.