diff --git a/.drone.yml b/.drone.yml index 58a8a379..882eb517 100644 --- a/.drone.yml +++ b/.drone.yml @@ -278,7 +278,17 @@ steps: - | [ -f "$SKIPCI" ] && exit 0 - - apk add --update --no-cache $(cat platypush/install/requirements/alpine.txt) + # Only regenerate the components cache if either the plugins, backends, + # events or schemas folders have some changes (excluding the webapp files). + - apk add --update --no-cache git + - | + if [ -z "$(git log --pretty=oneline $DRONE_COMMIT_AFTER...$DRONE_COMMIT_BEFORE -- platypush/backend platypush/plugins platypush/schemas platypush/message/event ':(exclude)platypush/backend/http/webapp')" ]; then + echo 'No changes to the components file' + exit 0 + fi + + - echo 'Updating components cache' + - apk add --update --no-cache bash gnupg openssh $(cat platypush/install/requirements/alpine.txt) - pip install . --break-system-packages - | python - <