1
0
mirror of https://github.com/yldio/copilot.git synced 2024-11-28 14:10:04 +02:00

Only publish ui when changes have been made

This commit is contained in:
Tom Gallacher 2017-01-06 12:41:48 +00:00
parent 8dc61bce40
commit a3a7622927

View File

@ -32,7 +32,7 @@ deployment:
branch: master branch: master
commands: commands:
- ./bin/docker-login - ./bin/docker-login
- make -C ui publish | sed '/NPM_TOKEN/d' - [[ $(git diff --name-only) == *'ui/'* ]] && make -C ui publish | sed '/NPM_TOKEN/d'
- make -j2 build | sed '/NPM_TOKEN/d' - make -j2 build | sed '/NPM_TOKEN/d'
- make -j2 push | sed '/NPM_TOKEN/d' - make -j2 push | sed '/NPM_TOKEN/d'
- ./bin/deploy - ./bin/deploy