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

chore: prefix container names

This commit is contained in:
Sérgio Ramos 2017-05-31 18:35:06 +01:00
parent a44c12dcdd
commit a0ea6d4a28

View File

@ -2,6 +2,7 @@
const execa = require('execa'); const execa = require('execa');
const { parse } = require('dotenv'); const { parse } = require('dotenv');
const { name } = require('../package.json');
const main = require('apr-main'); const main = require('apr-main');
const map = require('apr-map'); const map = require('apr-map');
const series = require('apr-series'); const series = require('apr-series');
@ -129,7 +130,9 @@ const deploy = async () => {
LOG(`${figures.arrowRight} deploy`); LOG(`${figures.arrowRight} deploy`);
return execa('docker-compose', ['up', '-d', '--build'], { return execa('docker-compose', ['up', '-d', '--build'], {
stdio: 'inherit', stdio: 'inherit',
env env: Object.assign({}, env, {
COMPOSE_PROJECT_NAME: `${name}-${env.CIRCLE_BRANCH}`
})
}); });
}; };