Skip to content

Commit

Permalink
Workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
b23prodtm committed Jul 24, 2022
1 parent b54f754 commit df51dde
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 30 deletions.
54 changes: 25 additions & 29 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,16 @@ aliases:
run:
name: Install dependencies
command: |
git submodule sync
git submodule update --init --recursive
apk update \
&& apk add \
npm \
php7-session \
&& apk del build-base \
&& rm -rf /var/cache/apk/*
rm -Rf node_modules/balena-cloud || true
npm install --no-optional
npm link balena-cloud
npm ci
npm link balena-cloud-apps
orbs:
shellcheck: circleci/shellcheck@1.3.16
jobs:
Expand All @@ -38,17 +39,21 @@ jobs:
working_directory: /var/www/html/
steps:
- checkout
- run:
command: git submodule sync
- run:
command: git submodule update --init --recursive
- restore_cache:
key: v1-dependencies-{{ checksum "package-lock.json" }}
- restore_cache:
key: v1-dependencies-{{ checksum "composer.lock" }}
keys:
- v1-dependencies-{{ checksum "package-lock.json" }}
- v1-dependencies-{{ checksum "composer.lock" }}
- setup_remote_docker:
docker_layer_caching: false
- *deps
- save_cache:
key: v1-dependencies-{{ checksum "composer.lock" }}
paths:
- app/Vendor
- save_cache:
key: v1-dependencies-{{ checksum "package-lock.json" }}
paths:
- $HOME/.npm
- run:
name: Set architecture and Setup Environment Variables
command: |
Expand All @@ -72,21 +77,12 @@ jobs:
./test-cake.sh --circle
. common.env && cat $MYPHPCMS_DIR/e13/etc/constantes.properties | grep PASSWORD_ADMIN | head -c 18
when: always
- save_cache:
key: v1-dependencies-{{ checksum "composer.lock" }}
paths:
- app/Vendor
- save_cache:
key: v1-dependencies-{{ checksum "package-lock.json" }}
paths:
- node_modules
- persist_to_workspace:
root: .
root: app/
paths:
- node_modules
- app/Config
- app/webroot
- app/Vendor
- Config
- webroot
- Vendor
compose:
docker:
- image: betothreeprod/dind-php7
Expand All @@ -96,12 +92,12 @@ jobs:
- DKR_ARCH: x86_64
steps:
- checkout
- run:
command: git submodule sync
- run:
command: git submodule update --init --recursive
- attach_workspace:
at: .
- attach_to_workspace:
at: app
- restore_cache:
keys:
- v1-dependencies-{{ checksum "package-lock.json" }}
- v1-dependencies-{{ checksum "composer.lock" }}
- setup_remote_docker:
docker_layer_caching: false
- *deps
Expand Down
1 change: 0 additions & 1 deletion app/webroot/php_cms
Submodule php_cms deleted from bbc9f7

0 comments on commit df51dde

Please sign in to comment.