@verdnatura/myt 2.0.3 → 2.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/docker.js CHANGED
@@ -61,6 +61,10 @@ const docker = {
61
61
  return JSON.parse(child.stdout || null);
62
62
  },
63
63
 
64
+ async tag(source, target) {
65
+ await docker.command('tag', [source, target]);
66
+ },
67
+
64
68
  async command(command, args, options, execMode, execOptions, debug) {
65
69
  const execArgs = [command];
66
70
 
package/myt-build.js CHANGED
@@ -270,7 +270,8 @@ class Build extends Command {
270
270
  } finally {
271
271
  await fs.unlink(changesFile);
272
272
  }
273
- }
273
+ } else if (opts.tag)
274
+ await docker.tag(tag, `${imageName}:${opts.tag}`);
274
275
 
275
276
  this.emit('serverImageTag', tag);
276
277
  return tag;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@verdnatura/myt",
3
- "version": "2.0.3",
3
+ "version": "2.0.4",
4
4
  "author": "Verdnatura Levante SL",
5
5
  "description": "MySQL version control",
6
6
  "license": "GPL-3.0",