mirror of
https://github.com/koenrh/actions.git
synced 2024-09-20 15:06:00 +08:00
Merge pull request #6 from koenrh/koenrh/update-eslint
Update ESLint to latest version, and add add integrity check
This commit is contained in:
commit
b2940bc066
|
@ -7,15 +7,21 @@ LABEL "com.github.actions.name"="GitHub Action for ESLint"
|
|||
LABEL "com.github.actions.icon"="code"
|
||||
LABEL "com.github.actions.color"="blue"
|
||||
|
||||
ENV ESLINT_VERSION=5.11.1 \
|
||||
ENV ESLINT_VERSION=5.12.1 \
|
||||
ESLINT_CHECKSUM="642ba59e25de166cf730d6eeb0af9b6f37ab21a04f5726baae6b1588da4afa60" \
|
||||
PATH=/usr/lib/node_modules/.bin:$PATH
|
||||
|
||||
RUN npm install -g eslint@${ESLINT_VERSION} && \
|
||||
rm -rf /usr/share/man /tmp/* \
|
||||
/root/.npm /root/.node-gyp \
|
||||
/usr/lib/node_modules/npm/man \
|
||||
/usr/lib/node_modules/npm/doc \
|
||||
/usr/lib/node_modules/npm/html
|
||||
RUN set -x && \
|
||||
wget -O "eslint-$ESLINT_VERSION.tgz" "https://registry.npmjs.org/eslint/-/eslint-$ESLINT_VERSION.tgz" && \
|
||||
echo "${ESLINT_CHECKSUM} *eslint-$ESLINT_VERSION.tgz" | sha256sum -c - && \
|
||||
npm install -g "eslint-$ESLINT_VERSION.tgz" && \
|
||||
rm -rf "eslint-$ESLINT_VERSION.tgz" \
|
||||
/usr/share/man \
|
||||
/root/.npm /root/.node-gyp \
|
||||
/usr/lib/node_modules/npm/man \
|
||||
/usr/lib/node_modules/npm/doc \
|
||||
/usr/lib/node_modules/npm/html \
|
||||
/tmp/*
|
||||
|
||||
COPY entrypoint.sh /entrypoint.sh
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
|
|
Loading…
Reference in a new issue