@ossy/deployment-tools 0.0.56 → 0.0.57
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ossy/deployment-tools",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.57",
|
|
4
4
|
"description": "Collection of scripts and tools to aid deployment of containers and static files to Amazon Web Services through GitHub Actions",
|
|
5
5
|
"source": "./src/index.js",
|
|
6
6
|
"main": "./src/index.js",
|
|
@@ -32,7 +32,7 @@ class DockerService {
|
|
|
32
32
|
const envsAsString = Object.entries(env || {}).reduce((envs, [name, value]) => `${envs} --env ${name}=${value}`, '')
|
|
33
33
|
logInfo({ message: `[DockerService] Running docker start for image with the name of ${name} with port mapping ${hostPort}:${containerPort} and source ${imageUrl}` })
|
|
34
34
|
return exec(`docker run -d -p ${hostPort}:${containerPort} --name=${name} --network=${platformConfig.ciDockerNetworkName} --network-alias=${name} --rm ${envsAsString} ${imageUrl}`)
|
|
35
|
-
.
|
|
35
|
+
.catch(logErrorAndReject(`[DockerService] Could not start container ${image}`))
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
static resolveCredentials({ registry, username, authentication }) {
|
|
@@ -45,7 +45,7 @@ class DockerService {
|
|
|
45
45
|
return !shouldAuthenticate
|
|
46
46
|
? Promise.resolve()
|
|
47
47
|
: exec(`docker login ${registry} -u ${username} -p ${authentication}`)
|
|
48
|
-
.
|
|
48
|
+
.catch(logErrorAndReject(`[DockerService] Could not authenticate with ${registry}`))
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
static deploy(platformConfig, deploymentRequest) {
|