Commit cf932760 authored by Thomas Löffler's avatar Thomas Löffler
Browse files

Use .composer-cache folder to cache composer requests

parent 4c573090
Pipeline #2657 failed with stages
in 28 seconds
variables:
COMPOSER_CACHE_DIR: .composer-cache/
cache:
paths:
- /cache/composer
- $COMPOSER_CACHE_DIR
stages:
- composer
......@@ -14,7 +17,7 @@ stages:
stage: composer
image: composer:1
before_script:
- composer config cache-dir /cache/composer
- composer config -g cache-dir "$CI_PROJECT_DIR/$COMPOSER_CACHE_DIR"
script:
- composer install
artifacts:
......@@ -31,7 +34,7 @@ stages:
- mkdir -p ~/.ssh
- echo "$PRIVATE_KEY" | ssh-add -
- ssh-keyscan -p 22 test.spooner.zone >> /root/.ssh/known_hosts
- composer config cache-dir /cache/composer
- composer config -g cache-dir "$CI_PROJECT_DIR/$COMPOSER_CACHE_DIR"
- composer global require deployer/deployer
- composer global require deployer/recipes
script:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment