From d68c2d396d4e6dd02a43b6351af033d42f59716a Mon Sep 17 00:00:00 2001 From: Andrei Borza Date: Tue, 25 Feb 2025 20:15:34 +0100 Subject: [PATCH] Don't pass filenames to local hooks, fix dockerfile casing --- .pre-commit-config.yaml | 3 +++ Dockerfile | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7cdf339..4228dc0 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -13,11 +13,14 @@ repos: name: Format entry: yarn format language: system + pass_filenames: false - id: lint name: Lint entry: yarn lint language: system + pass_filenames: false - id: set-docker-tag-from-branch name: Set docker tag in action.yml from current git branch entry: yarn set-docker-tag-from-branch language: system + pass_filenames: false diff --git a/Dockerfile b/Dockerfile index a764712..7d52626 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ # The multi stage set up *saves* up image size by avoiding the dev dependencies # required to produce dist/ -FROM node:18-alpine as builder +FROM node:18-alpine AS builder WORKDIR /app # This layer will invalidate upon new dependencies COPY package.json yarn.lock ./ @@ -12,7 +12,7 @@ RUN export YARN_CACHE_FOLDER="$(mktemp -d)" \ COPY . . RUN yarn build -FROM node:18-alpine as app +FROM node:18-alpine AS app COPY package.json yarn.lock /action-release/ # On the builder image, we install both types of dependencies rather than # just the production ones. This generates /action-release/node_modules @@ -29,4 +29,4 @@ RUN printf '[safe]\n directory = *\n' > /etc/gitconfig COPY entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh -ENTRYPOINT ["/entrypoint.sh"] \ No newline at end of file +ENTRYPOINT ["/entrypoint.sh"]