Skip to content
Snippets Groups Projects
Verified Commit c659ad86 authored by Daniel Göbel's avatar Daniel Göbel
Browse files

Update to node 20

parent b4feda2e
No related branches found
No related tags found
1 merge request!102Resolve "Add UI for parameter translation layer"
image: ${CI_DEPENDENCY_PROXY_DIRECT_GROUP_IMAGE_PREFIX}/node:18 image: ${CI_DEPENDENCY_PROXY_DIRECT_GROUP_IMAGE_PREFIX}/node:20
cache: cache:
paths: paths:
- node_modules - node_modules
...@@ -34,16 +34,23 @@ build: ...@@ -34,16 +34,23 @@ build:
paths: paths:
- dist - dist
publish-main-docker-container-job: .build-container-job:
stage: deploy stage: deploy
image: image:
name: gcr.io/kaniko-project/executor:v1.21.0-debug name: gcr.io/kaniko-project/executor:v1.21.1-debug
entrypoint: [""] entrypoint: [ "" ]
dependencies: [ ]
cache: [ ]
before_script:
- echo "{\"auths\":{\"${CI_REGISTRY}\":{\"auth\":\"$(printf "%s:%s" "${CI_REGISTRY_USER}" "${CI_REGISTRY_PASSWORD}" | base64 | tr -d '\n')\"},\"$(echo -n $CI_DEPENDENCY_PROXY_SERVER | awk -F[:] '{print $1}')\":{\"auth\":\"$(printf "%s:%s" ${CI_DEPENDENCY_PROXY_USER} "${CI_DEPENDENCY_PROXY_PASSWORD}" | base64 | tr -d '\n')\"}}}" > /kaniko/.docker/config.json
publish-main-docker-container-job:
extends: .build-container-job
only: only:
refs: refs:
- main - main
before_script:
- echo "{\"auths\":{\"${CI_REGISTRY}\":{\"auth\":\"$(printf "%s:%s" "${CI_REGISTRY_USER}" "${CI_REGISTRY_PASSWORD}" | base64 | tr -d '\n')\"},\"$(echo -n $CI_DEPENDENCY_PROXY_SERVER | awk -F[:] '{print $1}')\":{\"auth\":\"$(printf "%s:%s" ${CI_DEPENDENCY_PROXY_USER} "${CI_DEPENDENCY_PROXY_PASSWORD}" | base64 | tr -d '\n')\"}}}" > /kaniko/.docker/config.json
script: script:
- /kaniko/executor - /kaniko/executor
--context "${CI_PROJECT_DIR}" --context "${CI_PROJECT_DIR}"
...@@ -52,14 +59,9 @@ publish-main-docker-container-job: ...@@ -52,14 +59,9 @@ publish-main-docker-container-job:
--destination "${CI_REGISTRY_IMAGE}:main-latest" --destination "${CI_REGISTRY_IMAGE}:main-latest"
publish-docker-container-job: publish-docker-container-job:
stage: deploy extends: .build-container-job
image:
name: gcr.io/kaniko-project/executor:v1.21.0-debug
entrypoint: [""]
only: only:
- tags - tags
before_script:
- echo "{\"auths\":{\"${CI_REGISTRY}\":{\"auth\":\"$(printf "%s:%s" "${CI_REGISTRY_USER}" "${CI_REGISTRY_PASSWORD}" | base64 | tr -d '\n')\"},\"$(echo -n $CI_DEPENDENCY_PROXY_SERVER | awk -F[:] '{print $1}')\":{\"auth\":\"$(printf "%s:%s" ${CI_DEPENDENCY_PROXY_USER} "${CI_DEPENDENCY_PROXY_PASSWORD}" | base64 | tr -d '\n')\"}}}" > /kaniko/.docker/config.json
script: script:
- /kaniko/executor - /kaniko/executor
--context "${CI_PROJECT_DIR}" --context "${CI_PROJECT_DIR}"
......
# build stage # build stage
FROM node:18 as build-stage FROM node:20 as build-stage
WORKDIR /app WORKDIR /app
COPY package.json ./ COPY package.json ./
COPY package-lock.json ./ COPY package-lock.json ./
...@@ -10,7 +10,7 @@ RUN npm run build-only ...@@ -10,7 +10,7 @@ RUN npm run build-only
# production stage # production stage
FROM nginx:stable-alpine as production-stage FROM nginx:stable-alpine as production-stage
EXPOSE 80 EXPOSE 80
HEALTHCHECK --interval=30s --timeout=2s CMD curl --head -f http://localhost || exit 1 HEALTHCHECK --interval=10s --timeout=2s CMD curl --head -f http://localhost || exit 1
COPY nginx.conf /etc/nginx/conf.d/default.conf COPY nginx.conf /etc/nginx/conf.d/default.conf
COPY --from=build-stage /app/dist /usr/share/nginx/html COPY --from=build-stage /app/dist /usr/share/nginx/html
COPY --from=build-stage /app/src/assets/env.template.js /tmp COPY --from=build-stage /app/src/assets/env.template.js /tmp
......
This diff is collapsed.
{ {
"extends": [ "extends": [
"@tsconfig/node18/tsconfig.json", "@tsconfig/node20/tsconfig.json",
"@vue/tsconfig/tsconfig.json" "@vue/tsconfig/tsconfig.json"
], ],
"include": [ "include": [
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment