Skip to content

Commit

Permalink
chore(api): update dockerfile and ci
Browse files Browse the repository at this point in the history
  • Loading branch information
rajdip-b committed Feb 18, 2024
1 parent 976026c commit ae2d944
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/stage-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ on:
paths: ['apps/api/**', '.github/workflows/stage-api.yml']

env:
SENTRY_PROJECT: keyshade-api
SENTRY_ENVIRONMENT: production
SENTRY_ORG: keyshade
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}

jobs:
Expand All @@ -23,4 +20,4 @@ jobs:
run: |
curl -L https://fly.io/install.sh | sh
- name: Deploy to stage
run: ~/.fly/bin/fly deploy --config fly.api.toml --dockerfile ./apps/api/Dockerfile --app keyshade-api-stage --access-token ${{ secrets.FLY_ACCESS_TOKEN }}
run: ~/.fly/bin/fly deploy --config fly.api.toml --dockerfile ./apps/api/Dockerfile --app keyshade-api-stage --access-token ${{ secrets.FLY_ACCESS_TOKEN }} --build-arg SENTRY_AUTH_TOKEN=${SENTRY_AUTH_TOKEN} --build-arg SENTRY_PROJECT=keyshade-api --build-arg SENTRY_ORG=keyshade --build-arg SENTRY_ENVIRONMENT=stage
5 changes: 4 additions & 1 deletion apps/api/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ COPY apps/api apps/api
COPY apps/api/startup.sh .
RUN chmod +x startup.sh

RUN ls -la
ARG SENTRY_ORG=${SENTRY_ORG}
ARG SENTRY_PROJECT=${SENTRY_PROJECT}
ARG SENTRY_ENVIRONMENT=${SENTRY_ENVIRONMENT}
ARG SENTRY_AUTH_TOKEN=${SENTRY_AUTH_TOKEN}

RUN pnpm run db:generate-types
RUN pnpm run build:api
Expand Down

0 comments on commit ae2d944

Please sign in to comment.