Revert "feat: update base docker image from node 12 to node 18 (#172)"

This reverts commit d6dcd7214f.
This commit is contained in:
Stephen Cefali
2023-12-01 11:24:24 -08:00
committed by GitHub
parent d6dcd7214f
commit 7ade023ad4
4 changed files with 3136 additions and 2342 deletions
+2 -6
View File
@@ -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:12-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:12-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
@@ -25,10 +25,6 @@ RUN export YARN_CACHE_FOLDER="$(mktemp -d)" \
COPY --from=builder /app/dist /action-release/dist/
RUN chmod +x /action-release/dist/index.js
# move the sentry-cli binary to where the entrypoint expects it
RUN mv /action-release/node_modules/@sentry/cli/sentry-cli /action-release/sentry-cli
RUN chmod +x /action-release/sentry-cli
# XXX: This could probably be replaced with a standard CMD
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
+14 -14
View File
@@ -28,22 +28,22 @@
"@sentry/cli": "^1.67.2"
},
"devDependencies": {
"@types/jest": "^29.5.6",
"@types/node": "^20.8.9",
"@typescript-eslint/parser": "^6.9.0",
"@vercel/ncc": "^0.38.1",
"eslint": "^8.52.0",
"eslint-plugin-github": "^4.10.1",
"eslint-plugin-jest": "^27.4.3",
"jest": "^29.7.0",
"jest-circus": "^29.7.0",
"js-yaml": "^4.1.0",
"prettier": "^3.0.3",
"ts-jest": "^29.1.1",
"typescript": "^5.2.2"
"@types/jest": "^26.0.0",
"@types/node": "^14.0.13",
"@typescript-eslint/parser": "^3.3.0",
"@zeit/ncc": "^0.22.3",
"eslint": "^7.2.0",
"eslint-plugin-github": "^4.0.1",
"eslint-plugin-jest": "^23.13.2",
"jest": "^26.0.1",
"jest-circus": "^26.0.1",
"js-yaml": "^3.14.0",
"prettier": "^2.0.5",
"ts-jest": "^26.1.0",
"typescript": "^3.9.5"
},
"volta": {
"node": "18.17.0",
"node": "12.17.0",
"yarn": "1.22.4"
}
}
+1 -1
View File
@@ -82,6 +82,6 @@ import * as process from 'process';
core.debug(`Done`);
core.setOutput('version', version);
} catch (error) {
core.setFailed((error as Error).message);
core.setFailed(error.message);
}
})();
+3119 -2321
View File
File diff suppressed because it is too large Load Diff