@rlyle1179/serverless-aws-batch 1.0.46 → 1.0.47
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 +2 -2
- package/lib/ecr.js +1 -2
- package/package.json +1 -1
package/lib/docker.js
CHANGED
|
@@ -6,7 +6,7 @@ const path = require('path');
|
|
|
6
6
|
const util = require('util');
|
|
7
7
|
const { getDockerLoginToECRCommand } = require('./awscli');
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
const DOCKER_TAG = `${Date.now()}`;
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* @returns {string} "<ECR Repo Name>:latest"
|
|
@@ -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
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
const { getAWSAccountID } = require('./awscli');
|
|
2
|
-
import { DOCKER_TAG } from './docker';
|
|
3
2
|
|
|
4
3
|
/**
|
|
5
4
|
* @returns {string} "ECRRepository"
|
|
@@ -21,7 +20,7 @@ function getECRRepositoryName() {
|
|
|
21
20
|
*/
|
|
22
21
|
|
|
23
22
|
function getECRRepositoryURL() {
|
|
24
|
-
return `${getAWSAccountID()}.dkr.ecr.${this.provider.getRegion()}.amazonaws.com/${this.provider.naming.getECRRepositoryName()}
|
|
23
|
+
return `${getAWSAccountID()}.dkr.ecr.${this.provider.getRegion()}.amazonaws.com/${this.provider.naming.getECRRepositoryName()}`
|
|
25
24
|
}
|
|
26
25
|
|
|
27
26
|
module.exports = {
|