Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,14 @@ jobs:

- run: npm run build

# semantic-release and its npm publishing plugin bundle a copy of the
# `npm` CLI, whose own bundled deps periodically surface advisories
# (e.g. brace-expansion, picomatch). Install them at release time
# only, not as devDependencies, so `npm audit` on the main branch
# never sees those transitive CLIs.
- name: Install semantic-release (ephemeral)
run: npm install --no-save --no-package-lock semantic-release@^25 @semantic-release/changelog@^6 @semantic-release/git@^10

- name: Release
env:
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
Expand Down Expand Up @@ -73,8 +81,6 @@ jobs:
with:
context: .
push: true
build-args: |
VERSION=${{ steps.version.outputs.version }}
tags: |
ghcr.io/${{ github.repository }}:latest
ghcr.io/${{ github.repository }}:${{ steps.version.outputs.version }}
19 changes: 15 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,19 @@
FROM node:22-alpine@sha256:8ea2348b068a9544dae7317b4f3aafcdc032df1647bb7d768a05a5cad1a7683f AS base
# syntax=docker/dockerfile:1
FROM node:22-alpine@sha256:8ea2348b068a9544dae7317b4f3aafcdc032df1647bb7d768a05a5cad1a7683f AS builder

ARG VERSION
RUN test -n "${VERSION}" && npm install -g "@pavel-kalmykov/bitbucket-server-mcp@${VERSION}"
WORKDIR /src
COPY package.json package-lock.json tsconfig.json ./
RUN npm ci --ignore-scripts
COPY src/ ./src/
RUN npm run build

FROM node:22-alpine@sha256:8ea2348b068a9544dae7317b4f3aafcdc032df1647bb7d768a05a5cad1a7683f AS runtime

WORKDIR /app
COPY package.json package-lock.json ./
RUN npm ci --omit=dev --ignore-scripts
COPY --from=builder /src/build/ ./build/

USER node

ENTRYPOINT ["bitbucket-server-mcp"]
ENTRYPOINT ["node", "/app/build/entry.js"]
Loading
Loading