@vamship/build-utils 2.4.0 → 2.4.3
Sign up to get free protection for your applications and to get access to all the features.
package/package.json
CHANGED
package/src/project.js
CHANGED
@@ -108,6 +108,7 @@ export class Project {
|
|
108
108
|
test: {
|
109
109
|
unit: null,
|
110
110
|
api: null,
|
111
|
+
int: null,
|
111
112
|
},
|
112
113
|
infra: null,
|
113
114
|
scripts: null,
|
@@ -116,6 +117,7 @@ export class Project {
|
|
116
117
|
test: {
|
117
118
|
unit: null,
|
118
119
|
api: null,
|
120
|
+
int: null,
|
119
121
|
},
|
120
122
|
infra: null,
|
121
123
|
node_modules: null,
|
@@ -61,7 +61,7 @@ export class PublishContainerTaskBuilder extends TaskBuilder {
|
|
61
61
|
// Per docker docs `docker tag SOURCE_IMAGE[:TAG] TARGET_IMAGE[:TAG]`
|
62
62
|
_execa(
|
63
63
|
'docker',
|
64
|
-
['tag', definition.
|
64
|
+
['tag', definition.repo, `${definition.repo}:${tag}`],
|
65
65
|
{
|
66
66
|
stdio: 'inherit',
|
67
67
|
},
|
@@ -76,8 +76,8 @@ export class PublishContainerTaskBuilder extends TaskBuilder {
|
|
76
76
|
});
|
77
77
|
const pushTaskList = semverComponents.map((tag) => {
|
78
78
|
const pushTask = () =>
|
79
|
-
// Per docker docs `docker push [OPTIONS]
|
80
|
-
_execa('docker', ['push', `${definition.
|
79
|
+
// Per docker docs `docker push [OPTIONS] REPO[:TAG]`
|
80
|
+
_execa('docker', ['push', `${definition.repo}:${tag}`], {
|
81
81
|
stdio: 'inherit',
|
82
82
|
}).then(undefined, (err) => {
|
83
83
|
/*
|
@@ -16,7 +16,7 @@ export class TestTaskBuilder extends TaskBuilder {
|
|
16
16
|
* "unit" or "api".
|
17
17
|
*/
|
18
18
|
constructor(testType) {
|
19
|
-
if (['unit', 'api'].indexOf(testType) < 0) {
|
19
|
+
if (['unit', 'api', 'int'].indexOf(testType) < 0) {
|
20
20
|
throw new Error('Invalid testType (arg #1)');
|
21
21
|
}
|
22
22
|
super(`test-${testType}`, `Execute ${testType} tests`);
|