Skip to content

Commit

Permalink
Merge pull request #3 from jgrove2/Clerksetup
Browse files Browse the repository at this point in the history
mound secret
  • Loading branch information
jgrove2 authored Nov 27, 2024
2 parents baea449 + 3296f1d commit 0e8af38
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/fly-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: superfly/flyctl-actions/setup-flyctl@master
- run: flyctl deploy --remote-only
- run: flyctl deploy --remote-only --build-secret CLERK_SECRET_KEY=${{ secrets.CLERK_SECRET_KEY }}
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
CLERK_SECRET_KEY: ${{ secrets.CLERK_SECRET_KEY }}
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ ENV NODE_ENV="production"

# Throw-away build stage to reduce size of final image
FROM base as build
RUN --mount=type=secret,id=CLERK_SECRET_KEY \
CLERK_SECRET_KEY="$(cat /run/secrets/CLERK_SECRET_KEY)"

# Install packages needed to build node modules
RUN apt-get update -qq && \
Expand Down

0 comments on commit 0e8af38

Please sign in to comment.