Skip to content
Snippets Groups Projects
Verified Commit 12d02502 authored by Benjamin LEGROS's avatar Benjamin LEGROS
Browse files

feat: declare node yarn image for pipelines

parent eba52f2e
No related branches found
No related tags found
No related merge requests found
Pipeline #108994 failed
......@@ -17,6 +17,9 @@ variables:
NODE_IMAGE_NAME: "node"
NODE_IMAGE: $CI_REGISTRY_IMAGE/$NODE_IMAGE_NAME
NODE_YARN_IMAGE_NAME: "node-yarn"
NODE_YARN_IMAGE: $CI_REGISTRY_IMAGE/$NODE_YARN_IMAGE_NAME
HELM_CI_IMAGE_NAME: "helm"
HELM_CI_IMAGE: $CI_REGISTRY_IMAGE/$HELM_CI_IMAGE_NAME
......@@ -69,6 +72,20 @@ build_node:
only:
- main
build_node_yarn:
stage: build
image:
name: gcr.io/kaniko-project/executor:debug
entrypoint: [""]
tags:
- docker
script:
- export
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"auth\":\"$(echo -n ${CI_REGISTRY_USER}:${CI_REGISTRY_PASSWORD} | base64)\"}}}" > /kaniko/.docker/config.json
- /kaniko/executor --context $CI_PROJECT_DIR/node_yarn/20_4 --dockerfile $CI_PROJECT_DIR/node_yarn/20_4/Dockerfile --destination ${NODE_YARN_IMAGE}:20-yarn4
only:
- main
build_postgresql:
stage: build
image:
......
FROM node:20-bookworm-slim
ENV YARN_VERSION=4.4.1
RUN corepack enable && yarn set version "$YARN_VERSION"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment