@@ -13,25 +13,18 @@ COPY . .
1313RUN npm run generate
1414RUN 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
3730CMD [ "npm" , "run" , "start" ]
0 commit comments