Hi, I have a custom docker image and I am using it as my executor. But when I try to checkout the code, I got a permission error.
This is my last docker file version
FROM cimg/node:lts
RUN mkdir ~/.npm-global
ENV NPM_CONFIG_PREFIX=~/.npm-global
ENV PATH=/home/circleci/.npm-global/bin:$PATH
RUN npm install --global expo-cli
RUN expo --version
RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
RUN unzip awscliv2.zip
RUN sudo ./aws/install
RUN aws --version
COPY package*.json ./
RUN npm install
COPY . .
RUN npm link
USER circleci
And this is the error that is happening in the execution. Also this is the second time in my workflow, that I do the checkout, the firs time it works fine, but I’m using the cimg/node:lts
as the executor
Here is my circleci config
version: 2.1
executors:
flexge-cli-executor:
docker:
- image: disruptivedev/flexge-cli:latest
auth:
username: $DOCKERHUB_USER
password: $DOCKERHUB_PASSWORD
jobs:
checkout:
working_directory: ~/project
docker:
- image: cimg/node:lts
steps:
- checkout
- restore_cache:
key: dependency-cache-{{ checksum "package-lock.json" }}
- run:
name: Install dependencies
command: npm install
- save_cache:
key: dependency-cache-{{ checksum "package-lock.json" }}
paths:
- node_modules
staging_release:
working_directory: ~/project
executor: flexge-cli-executor
steps:
- checkout
- restore_cache:
key: dependency-cache-{{ checksum “package-lock.json” }}
- run:
name: deploy updates
command: FLEXGE_CLI_USER={FLEXGE_USER} FLEXGE_CLI_PASSWORD={FLEXGE_PASSWORD} flexge-cli mobile-deploy student_mobile staging flexge.com
I would love if somebody can enlight meon this issue.