build: force compose to recreate images

This commit is contained in:
Sérgio Ramos 2017-05-31 23:19:26 +01:00
parent df5d8655f9
commit 3ffc3b9d1d

View File

@ -128,7 +128,7 @@ const deploy = async () => {
const env = await getEnv(); const env = await getEnv();
LOG(`${figures.arrowRight} deploy`); LOG(`${figures.arrowRight} deploy`);
return execa('docker-compose', ['up', '-d', '--build'], { return execa('docker-compose', ['up', '-d', '--build', '--force-recreate'], {
stdio: 'inherit', stdio: 'inherit',
env: Object.assign({}, env, { env: Object.assign({}, env, {
COMPOSE_PROJECT_NAME: `${name}-${env.CIRCLE_BRANCH}` COMPOSE_PROJECT_NAME: `${name}-${env.CIRCLE_BRANCH}`