Skip to content

Commit

Permalink
feat(container): added @commitlint/config-nx-scopes for nx monorepos
Browse files Browse the repository at this point in the history
  • Loading branch information
gperdomor committed Feb 14, 2024
1 parent a601533 commit 45bf58e
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions Dockerfile.ci
Expand Up @@ -2,31 +2,31 @@ FROM docker.io/library/node:18-buster AS builder
WORKDIR /src
COPY . ./
RUN yarn install && \
yarn run build && \
# Commit lint CLI packages
npm pack @commitlint/cli && \
npm pack @commitlint/config-validator && \
npm pack @commitlint/config-nx-scopes && \
npm pack @commitlint/ensure && \
npm pack @commitlint/execute-rule && \
npm pack @commitlint/format && \
npm pack @commitlint/is-ignored && \
npm pack @commitlint/lint && \
npm pack @commitlint/load && \
npm pack @commitlint/message && \
npm pack @commitlint/parse && \
npm pack @commitlint/read && \
npm pack @commitlint/resolve-extends && \
npm pack @commitlint/rules && \
npm pack @commitlint/to-lines && \
npm pack @commitlint/top-level && \
npm pack @commitlint/types && \
https://github.com/conventional-changelog/commitlint
# Default commitlint config
npm pack @commitlint/config-conventional
yarn run build && \
# Commit lint CLI packages
npm pack @commitlint/cli && \
npm pack @commitlint/config-validator && \
npm pack @commitlint/config-nx-scopes && \
npm pack @commitlint/ensure && \
npm pack @commitlint/execute-rule && \
npm pack @commitlint/format && \
npm pack @commitlint/is-ignored && \
npm pack @commitlint/lint && \
npm pack @commitlint/load && \
npm pack @commitlint/message && \
npm pack @commitlint/parse && \
npm pack @commitlint/read && \
npm pack @commitlint/resolve-extends && \
npm pack @commitlint/rules && \
npm pack @commitlint/to-lines && \
npm pack @commitlint/top-level && \
npm pack @commitlint/types && \
npm pack @commitlint/types && \
# Default commitlint config
npm pack @commitlint/config-conventional

FROM docker.io/library/node:18-buster
COPY --from=builder /src/*.tgz ./
RUN npm install -g *.tgz && \
rm -rf *.tgz
rm -rf *.tgz
ENTRYPOINT ["commitlint"]

0 comments on commit 45bf58e

Please sign in to comment.