mirror of
https://github.com/meienberger/runtipi.git
synced 2024-08-17 08:00:26 +03:00
chore(worker-build): use release.name for sentry release
This commit is contained in:
parent
41601ad2b4
commit
af73dafc0e
29
Dockerfile
29
Dockerfile
@ -6,8 +6,16 @@ FROM node:${NODE_VERSION}-alpine${ALPINE_VERSION} AS node_base
|
||||
# ---- BUILDER BASE ----
|
||||
FROM node_base AS builder_base
|
||||
|
||||
ARG SENTRY_AUTH_TOKEN
|
||||
ARG SENTRY_DISABLE_AUTO_UPLOAD
|
||||
ARG TIPI_VERSION
|
||||
|
||||
ENV SENTRY_AUTH_TOKEN=${SENTRY_AUTH_TOKEN}
|
||||
ENV SENTRY_DISABLE_AUTO_UPLOAD=${SENTRY_DISABLE_AUTO_UPLOAD}
|
||||
ENV TIPI_VERSION=${TIPI_VERSION}
|
||||
|
||||
RUN npm install pnpm -g
|
||||
RUN apk add --no-cache curl python3 make g++
|
||||
RUN apk add --no-cache curl python3 make g++ git
|
||||
|
||||
# ---- RUNNER BASE ----
|
||||
FROM node_base AS runner_base
|
||||
@ -39,14 +47,6 @@ COPY ./sentry.client.config.ts ./sentry.client.config.ts
|
||||
COPY ./sentry.edge.config.ts ./sentry.edge.config.ts
|
||||
COPY ./sentry.server.config.ts ./sentry.server.config.ts
|
||||
|
||||
ARG SENTRY_AUTH_TOKEN
|
||||
ARG SENTRY_DISABLE_AUTO_UPLOAD
|
||||
ARG TIPI_VERSION
|
||||
|
||||
ENV SENTRY_AUTH_TOKEN=${SENTRY_AUTH_TOKEN}
|
||||
ENV SENTRY_DISABLE_AUTO_UPLOAD=${SENTRY_DISABLE_AUTO_UPLOAD}
|
||||
ENV TIPI_VERSION=${TIPI_VERSION}
|
||||
|
||||
RUN pnpm build
|
||||
|
||||
# ---- BUILD WORKER ----
|
||||
@ -84,15 +84,10 @@ COPY ./packages/worker/src ./packages/worker/src
|
||||
COPY ./packages/worker/package.json ./packages/worker/package.json
|
||||
COPY ./packages/worker/assets ./packages/worker/assets
|
||||
|
||||
ARG SENTRY_AUTH_TOKEN
|
||||
ARG SENTRY_DISABLE_AUTO_UPLOAD
|
||||
ARG TIPI_VERSION
|
||||
# Print TIPI_VERSION to the console
|
||||
RUN echo "TIPI_VERSION: ${TIPI_VERSION}"
|
||||
|
||||
ENV SENTRY_AUTH_TOKEN=${SENTRY_AUTH_TOKEN}
|
||||
ENV SENTRY_DISABLE_AUTO_UPLOAD=${SENTRY_DISABLE_AUTO_UPLOAD}
|
||||
ENV TIPI_VERSION=${TIPI_VERSION}
|
||||
|
||||
RUN pnpm -r build --filter @runtipi/worker
|
||||
RUN pnpm -r --filter @runtipi/worker build
|
||||
|
||||
# ---- RUNNER ----
|
||||
FROM runner_base AS app
|
||||
|
@ -18,7 +18,9 @@ async function bundle() {
|
||||
plugins: [
|
||||
sentryEsbuildPlugin({
|
||||
authToken: process.env.SENTRY_AUTH_TOKEN,
|
||||
release: process.env.TIPI_VERSION,
|
||||
release: {
|
||||
name: process.env.TIPI_VERSION,
|
||||
},
|
||||
org: 'runtipi',
|
||||
project: 'runtipi-worker',
|
||||
}),
|
||||
|
Loading…
Reference in New Issue
Block a user