Skip to content

Commit 1847e83

Browse files
more debugging
1 parent 246ea16 commit 1847e83

File tree

1 file changed

+12
-19
lines changed

1 file changed

+12
-19
lines changed

Dockerfile

Lines changed: 12 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -13,25 +13,18 @@ COPY . .
1313
RUN npm run generate
1414
RUN npm run build:production
1515

16-
RUN --mount=type=secret,id=sentry_auth_token \
17-
cat /run/secrets/sentry_auth_token
18-
19-
20-
21-
ARG SENTRY_VERSION
22-
ARG SENTRY_ORG
23-
ARG SENTRY_PROJECT
24-
ARG SENTRY_AUTH_TOKEN
25-
26-
RUN echo $SENTRY_AUTH_TOKEN
27-
RUN echo $SENTRY_ORG
28-
RUN echo $SENTRY_PROJECT
29-
RUN echo $SENTRY_VERSION
30-
31-
RUN --mount=type=secret,id=sentry_auth_token --mount=type=secret,id=sentry_org --mount=type=secret,id=sentry_project --mount=type=secret,id=sentry_version npx -y @sentry/cli releases new $(cat /run/secrets/sentry_version) --org $(cat /run/secrets/sentry_org) --project $(cat /run/secrets/sentry_project) --auth-token $(cat /run/secrets/sentry_auth_token)
32-
RUN npx -y @sentry/cli releases files $SENTRY_VERSION upload-sourcemaps --ext map --ext js --ext ts ./dist --org $SENTRY_ORG --project $SENTRY_PROJECT --auth-token $SENTRY_AUTH_TOKEN
33-
RUN npx -y @sentry/cli releases set-commits $SENTRY_VERSION --auto --org $SENTRY_ORG --project $SENTRY_PROJECT --auth-token $SENTRY_AUTH_TOKEN
34-
RUN npx -y @sentry/cli releases finalize $SENTRY_VERSION --org $SENTRY_ORG --project $SENTRY_PROJECT --auth-token $SENTRY_AUTH_TOKEN
16+
RUN --mount=type=secret,id=sentry_auth_token --mount=type=secret,id=sentry_org --mount=type=secret,id=sentry_project --mount=type=secret,id=sentry_version \
17+
npx -y @sentry/cli releases new $(cat /run/secrets/sentry_version) --org $(cat /run/secrets/sentry_org) \
18+
--project $(cat /run/secrets/sentry_project) --auth-token $(cat /run/secrets/sentry_auth_token)
19+
RUN --mount=type=secret,id=sentry_auth_token --mount=type=secret,id=sentry_org --mount=type=secret,id=sentry_project --mount=type=secret,id=sentry_version \
20+
npx -y @sentry/cli releases files $(cat /run/secrets/sentry_version) upload-sourcemaps --ext map --ext js --ext ts ./dist \
21+
--org $(cat /run/secrets/sentry_org) \
22+
--project $(cat /run/secrets/sentry_project) --auth-token $(cat /run/secrets/sentry_auth_token)
23+
RUN --mount=type=secret,id=sentry_auth_token --mount=type=secret,id=sentry_org --mount=type=secret,id=sentry_project --mount=type=secret,id=sentry_version \
24+
npx -y @sentry/cli releases set-commits $(cat /run/secrets/sentry_version) --auto --org $(cat /run/secrets/sentry_org) \
25+
--project $(cat /run/secrets/sentry_project) --auth-token $(cat /run/secrets/sentry_auth_token)
26+
RUN npx -y @sentry/cli releases finalize $(cat /run/secrets/sentry_version) --org $(cat /run/secrets/sentry_org) \
27+
--project $(cat /run/secrets/sentry_project) --auth-token $(cat /run/secrets/sentry_auth_token)
3528

3629

3730
CMD [ "npm", "run", "start" ]

0 commit comments

Comments
 (0)