Don't pass filenames to local hooks, fix dockerfile casing
This commit is contained in:
@@ -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
|
||||
|
||||
+3
-3
@@ -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"]
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
|
||||
Reference in New Issue
Block a user