From 4e16efdbc9aae1c00ba052f9b4c7604d40c57df9 Mon Sep 17 00:00:00 2001 From: LecomteAdrien Date: Mon, 2 Nov 2020 10:17:33 +0100 Subject: [PATCH] Update config.yml --- .circleci/config.yml | 28 +++++++++++++++++++++------- 1 file changed, 21 insertions(+), 7 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index b5755db..f6311d5 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -2,14 +2,28 @@ version: 2.1 jobs: build: docker: - - image: alpine:3.7 + - image: cimg/node:14.10.1 auth: username: mydockerhub-user password: $DOCKERHUB_PASSWORD # context / project UI env-var reference - steps: - - run: + steps: # dans les steps faut mettre un restore et un save avec la key et un path de cache pour le save + - checkout + - run : echo 'Hello World!' + - run: yarn global add node-gyp && yarn install + - restore_cache: + key: yarn-packages-{{ checksum "yarn.lock" }} + - save_cache: + key: yarn-packages-{{ checksum "yarn.lock" }} + paths: + - ~/.cache/yarn name: The First Step - command: | - echo 'Hello World!' - npm-v1-dependencies-{{ checksum "yarn.lock" }} - yarn global add node-gyp && yarn install \ No newline at end of file + + + + + + + + + +