Compose service tag label

This commit is contained in:
Juan 2018-06-12 11:59:34 +02:00
parent 320b18551e
commit a1aef51f3c
1 changed files with 4 additions and 7 deletions

View File

@ -191,14 +191,11 @@ gulp.task('docker-compose', async () => {
for (let serviceName in composeYml.services) {
let service = composeYml.services[serviceName];
let data = {
Object.assign(service, {
container_name: `${namePrefix}${serviceName}`,
image: `${serviceName}:${imageTag}`,
labels: {
'salix.tag': imageTag
}
};
Object.assign(service, data);
image: `${serviceName}:${imageTag}`
});
service.build.labels['salix.tag'] = imageTag;
}
let ymlString = yaml.safeDump(composeYml);