Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Ratchet7x5 committed Dec 12, 2024
2 parents a9d17ab + 6390c6a commit dd5d13e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.auisproduction.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: superfly/flyctl-actions/setup-flyctl@master
- run: flyctl deploy --remote-only --config fly.auis.toml
- run: flyctl deploy --remote-only --config fly.auis.toml --build-secret VITE_CLERK_PUBLISHABLE_KEY=${{ secrets.VITE_STRIPE_PUBLISHABLE_KEY }}
working-directory: ./web
env:
FLY_API_TOKEN: ${{ secrets.FLY_AUIS_API_TOKEN }}
Expand Down
6 changes: 4 additions & 2 deletions strapi/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ RUN yarn install --frozen-lockfile --production=false
COPY --link . .

# Build application
RUN yarn run build
RUN --mount=type=secret,id=VITE_STRIPE_PUBLISHABLE_KEY \
VITE_STRIPE_PUBLISHABLE_KEY="$(cat /run/secrets/VITE_STRIPE_PUBLISHABLE_KEY)"\
yarn run build

# Remove development dependencies
RUN yarn install --production=true
Expand All @@ -43,4 +45,4 @@ COPY --from=build /app /app
# Start the server by default, this can be overwritten at runtime
EXPOSE 1337

CMD [ "yarn", "run", "start" ]
CMD [ "yarn", "run", "start" ]

0 comments on commit dd5d13e

Please sign in to comment.