Skip to content
Snippets Groups Projects

chore(deps): update dependency remark-cli to v12.0.1 - abandoned

Open Botaniker (Bot) requested to merge renovate/remark into deploy
1 file
+ 33
21
Compare changes
  • Side-by-side
  • Inline
+ 33
21
@@ -7,19 +7,17 @@ ci:
BUILD +container
test:
FROM +build-frontend
FROM +builder
DO +COPY_HEDGEDOC
WORKDIR /hedgedoc
RUN rm -rf /hedgedoc/node_modules
COPY +build-frontend/hedgedoc/node_modules /hedgedoc/node_modules
COPY test /hedgedoc/test
COPY .eslintignore .eslintrc.js .remarkrc /hedgedoc/
RUN yarn test
builder:
FROM docker.io/library/node:20.7.0-slim@sha256:86ed0f70880231adc0fb66c2edbba5de350d8587999e2fe4e1f59c11a4cbb3b4
RUN apt-get update && apt-get install --no-install-recommends -y git jq ca-certificates python-is-python3 build-essential
RUN corepack enable
SAVE IMAGE --cache-hint
build-frontend:
FROM +builder
COPY_SRC:
FUNCTION
ENV PUPPETEER_SKIP_DOWNLOAD=true
ENV YARN_CACHE_FOLDER=/tmp/.yarn
COPY package.json yarn.lock /hedgedoc/
@@ -28,16 +26,34 @@ build-frontend:
# Install app dependencies and build
WORKDIR /hedgedoc
RUN --mount=type=cache,sharing=locked,target=/tmp/.yarn yarn install --immutable
IF [ "$NODE_ENV" = "production" ]
RUN --mount=type=cache,sharing=locked,target=/tmp/.yarn yarn workspaces focus --production
ELSE
RUN --mount=type=cache,sharing=locked,target=/tmp/.yarn yarn install --immutable
END
# copy all relevant sources after installing dependencies
COPY bin /hedgedoc/bin
COPY docs /hedgedoc/docs
COPY lib /hedgedoc/lib
COPY locales /hedgedoc/locales
COPY public /hedgedoc/public
COPY config.json.example webpack.*.js app.js .babelrc /hedgedoc/
COPY config.json.example webpack.*.js app.js .babelrc LICENSE README.md SECURITY.md /hedgedoc/
COPY_HEDGEDOC:
FUNCTION
COPY +build-backend/hedgedoc /hedgedoc
COPY +build-backend/files/config.json /files/config.json
COPY +build-frontend/hedgedoc/public/build /hedgedoc/public/build
builder:
FROM docker.io/library/node:20.7.0-slim@sha256:86ed0f70880231adc0fb66c2edbba5de350d8587999e2fe4e1f59c11a4cbb3b4
RUN apt-get update && apt-get install --no-install-recommends -y git jq ca-certificates python-is-python3 build-essential
RUN corepack enable
SAVE IMAGE --cache-hint
build-frontend:
FROM +builder
DO +COPY_SRC
# git hash switcheroo with earthly built-in args
ARG EARTHLY_GIT_HASH
RUN mkdir -p /hedgedoc/.git
@@ -45,6 +61,7 @@ build-frontend:
RUN jq ".repository.url = \"https://git.shivering-isles.com/shivering-isles/pad/-/tree/${EARTHLY_GIT_HASH}\"" /hedgedoc/package.json > /hedgedoc/package.new.json
RUN mv /hedgedoc/package.new.json /hedgedoc/package.json
ENV NODE_ENV=production
RUN yarn run build
RUN rm -f /hedgedoc/config.json
@@ -52,13 +69,11 @@ build-frontend:
SAVE IMAGE --cache-hint
SAVE ARTIFACT --symlink-no-follow /hedgedoc
build:
build-backend:
FROM +builder
ENV NODE_ENV=production
ENV YARN_CACHE_FOLDER=/tmp/.yarn
COPY +build-frontend/hedgedoc /hedgedoc
DO +COPY_SRC
WORKDIR /hedgedoc
RUN --mount=type=cache,sharing=locked,target=/tmp/.yarn yarn workspaces focus --production
RUN mkdir -p /files/
RUN echo "{}" > /files/config.json
SAVE IMAGE --cache-hint
@@ -67,21 +82,18 @@ build:
container:
# Use distroless image
FROM gcr.io/distroless/nodejs20-debian12
FROM gcr.io/distroless/nodejs20-debian12:nonroot
ARG registry=quay.io/shivering-isles/si-pad
ARG tag=latest
ARG latest=false
ARG UID=10000
ENV NODE_ENV=production
ENV UPLOADS_MODE=0700
COPY --chown=$UID +build/hedgedoc /hedgedoc
COPY --chown=$UID +build/files/config.json /files/config.json
DO +COPY_HEDGEDOC
WORKDIR /hedgedoc
EXPOSE 3000
USER $UID
CMD ["app.js"]
SAVE IMAGE --push ${registry}:${tag}
Loading