Compose service tag label
This commit is contained in:
parent
320b18551e
commit
a1aef51f3c
11
gulpfile.js
11
gulpfile.js
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue