skip to Main Content

Docker not found in Gitlab CI

am trying to follow this link to deploy using Gitlab CI and CDK my .gitlab-ci.yml looks like below ... image: node:18-alpine cache: paths: - cdk/node_modules/ stages: - build - deploy build: stage: build script: - cd cdk - npm install…

VIEW QUESTION

Docker – Dokcer build image –secret in Jenkins Pipeline

Here is my dockerfile FROM node:20-alpine3.18 WORKDIR /app COPY package*.json .npmrc ./ RUN --mount=type=secret,id=npmrc NPM_TOKEN=$(cat /run/secrets/npmrc) npm ci --production COPY . . EXPOSE 8000 CMD ["npm", "run", "start"] Here is my Jenkinsfile and docker-compose jenkins: container_name: jenkins image: jenkins/jenkins:lts privileged:…

VIEW QUESTION
Back To Top
Search