Commit 80b8cc11 authored by Grant's avatar Grant
Browse files

feat: mod-webhook-consumer

parent f596260a
Loading
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -102,6 +102,15 @@ build image:
      --build-arg SERVER_SENTRY_DSN=$SERVER_SENTRY_DSN \
      --build-arg SENTRY_AUTH_TOKEN=$SENTRY_AUTH_TOKEN .

build image:mod-webhook-consumer:
  stage: build
  image: docker:latest
  interruptible: true
  before_script:
    - echo "$CI_REGISTRY_PASSWORD" | docker login $CI_REGISTRY -u $CI_REGISTRY_USER --password-stdin
  script:
    - docker build --push --tag $CI_REGISTRY_IMAGE/mod-webhook-consumer

deploy:
  stage: deploy
  trigger:
+2 −1
Original line number Diff line number Diff line
@@ -8,7 +8,8 @@
    "packages/client",
    "packages/server",
    "packages/lib",
    "packages/chat"
    "packages/chat",
    "packages/mod-webhook-consumer"
  ],
  "main": "src/index.ts",
  "scripts": {
+5 −0
Original line number Diff line number Diff line
.env
README.md
node_modules
dist
Dockerfile
 No newline at end of file
+1 −0
Original line number Diff line number Diff line
.env
 No newline at end of file
+26 −0
Original line number Diff line number Diff line
FROM node:24-alpine AS base

WORKDIR /app

RUN echo "nodeLinker: node-modules" > .yarnrc.yml
COPY package.json yarn.lock ./

RUN corepack enable && corepack prepare --activate

FROM base AS builder

RUN yarn install

COPY . .
RUN yarn build

FROM base

COPY --from=builder /app/dist ./dist

RUN yarn workspaces focus --production

ENV PORT=3000
EXPOSE 3000

CMD ["node", "dist/index.js"]
Loading