@rlyle1179/serverless-aws-batch 1.0.45 → 1.0.48
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 +5 -5
- package/lib/ecr.js +1 -1
- package/package.json +1 -1
package/lib/docker.js
CHANGED
|
@@ -33,7 +33,7 @@ function dockerCommand(options, cwd = null, stdio = null) {
|
|
|
33
33
|
spawnOptions.stdio = stdio;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
console.error("dockerCommand:", options, spawnOptions);
|
|
36
|
+
//console.error("dockerCommand:", options, spawnOptions);
|
|
37
37
|
const ps = spawnSync(cmd, options, spawnOptions);
|
|
38
38
|
if (ps.error) {
|
|
39
39
|
if (ps.error.code === 'ENOENT') {
|
|
@@ -41,9 +41,9 @@ function dockerCommand(options, cwd = null, stdio = null) {
|
|
|
41
41
|
}
|
|
42
42
|
throw new Error(ps.error);
|
|
43
43
|
} else if (ps.status !== 0) {
|
|
44
|
-
console.error("docker output:", ps.output);
|
|
45
|
-
console.error("docker stdout:", ps.stdout);
|
|
46
|
-
console.error("docker stderr:", ps.stderr)
|
|
44
|
+
//console.error("docker output:", ps.output);
|
|
45
|
+
//console.error("docker stdout:", ps.stdout);
|
|
46
|
+
//console.error("docker stderr:", ps.stderr)
|
|
47
47
|
throw new Error(ps.stderr);
|
|
48
48
|
}
|
|
49
49
|
return ps;
|
|
@@ -119,7 +119,7 @@ function pushDockerImageToECR() {
|
|
|
119
119
|
|
|
120
120
|
// Then perform the upload
|
|
121
121
|
this.serverless.cli.log("Uploading to ECR...");
|
|
122
|
-
dockerCommand(['push', this.provider.naming.getECRRepositoryURL()], null, 'inherit');
|
|
122
|
+
dockerCommand(['push', '--all-tags', this.provider.naming.getECRRepositoryURL()], null, 'inherit');
|
|
123
123
|
|
|
124
124
|
return BbPromise.resolve();
|
|
125
125
|
}
|
package/lib/ecr.js
CHANGED
|
@@ -16,7 +16,7 @@ function getECRRepositoryName() {
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
|
-
* @type {string} "<awsAccountID>.dkr.ecr.us-east-1.amazonaws.com/<serviceName>-<stage>"
|
|
19
|
+
* @type {string} "<awsAccountID>.dkr.ecr.us-east-1.amazonaws.com/<serviceName>-<stage>:<tag>"
|
|
20
20
|
*/
|
|
21
21
|
|
|
22
22
|
function getECRRepositoryURL() {
|