@ossy/deployment-tools 0.0.9 → 0.0.11
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/dist/index.js +15 -13
- package/package.json +1 -1
- package/src/caddy-client.js +14 -12
- package/src/container-manager-commands.js +2 -2
- package/src/Caddyfile +0 -18
package/dist/index.js
CHANGED
|
@@ -28460,20 +28460,22 @@ class CaddyClient {
|
|
|
28460
28460
|
},
|
|
28461
28461
|
tls: {
|
|
28462
28462
|
automation: {
|
|
28463
|
-
policies:
|
|
28464
|
-
|
|
28465
|
-
|
|
28466
|
-
|
|
28467
|
-
|
|
28468
|
-
|
|
28469
|
-
|
|
28470
|
-
|
|
28463
|
+
policies: [
|
|
28464
|
+
{
|
|
28465
|
+
issuers: [
|
|
28466
|
+
{
|
|
28467
|
+
module: 'acme',
|
|
28468
|
+
challenges: {
|
|
28469
|
+
dns: {
|
|
28470
|
+
provider: {
|
|
28471
|
+
name: 'route53'
|
|
28472
|
+
}
|
|
28471
28473
|
}
|
|
28472
28474
|
}
|
|
28473
28475
|
}
|
|
28474
|
-
|
|
28475
|
-
|
|
28476
|
-
|
|
28476
|
+
]
|
|
28477
|
+
}
|
|
28478
|
+
]
|
|
28477
28479
|
}
|
|
28478
28480
|
}
|
|
28479
28481
|
}
|
|
@@ -28729,7 +28731,7 @@ class ContainerManagerCommands {
|
|
|
28729
28731
|
async getDeploymentPlatforms(pathToDeploymentPlatforms) {
|
|
28730
28732
|
|
|
28731
28733
|
const localDevPlatform = {
|
|
28732
|
-
name: '
|
|
28734
|
+
name: 'dev',
|
|
28733
28735
|
domain: 'localhost',
|
|
28734
28736
|
supportedDeploymentTypes: ['CONTAINER']
|
|
28735
28737
|
}
|
|
@@ -28765,7 +28767,7 @@ class ContainerManagerCommands {
|
|
|
28765
28767
|
deploy(
|
|
28766
28768
|
username,
|
|
28767
28769
|
authentication,
|
|
28768
|
-
targetEnvironment = '
|
|
28770
|
+
targetEnvironment = 'dev',
|
|
28769
28771
|
pathToDeploymentPlatforms,
|
|
28770
28772
|
pathToOssyFile
|
|
28771
28773
|
) {
|
package/package.json
CHANGED
package/src/caddy-client.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import fetch from 'node-fetch'
|
|
2
2
|
import * as config from './config.js'
|
|
3
3
|
|
|
4
|
-
const Matchers = {
|
|
4
|
+
export const Matchers = {
|
|
5
5
|
host: host => ({ host: [host] }),
|
|
6
6
|
path: path => ({ path: [path] })
|
|
7
7
|
}
|
|
@@ -58,20 +58,22 @@ class CaddyClient {
|
|
|
58
58
|
},
|
|
59
59
|
tls: {
|
|
60
60
|
automation: {
|
|
61
|
-
policies:
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
61
|
+
policies: [
|
|
62
|
+
{
|
|
63
|
+
issuers: [
|
|
64
|
+
{
|
|
65
|
+
module: 'acme',
|
|
66
|
+
challenges: {
|
|
67
|
+
dns: {
|
|
68
|
+
provider: {
|
|
69
|
+
name: 'route53'
|
|
70
|
+
}
|
|
69
71
|
}
|
|
70
72
|
}
|
|
71
73
|
}
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
74
|
+
]
|
|
75
|
+
}
|
|
76
|
+
]
|
|
75
77
|
}
|
|
76
78
|
}
|
|
77
79
|
}
|
|
@@ -29,7 +29,7 @@ export class ContainerManagerCommands {
|
|
|
29
29
|
async getDeploymentPlatforms(pathToDeploymentPlatforms) {
|
|
30
30
|
|
|
31
31
|
const localDevPlatform = {
|
|
32
|
-
name: '
|
|
32
|
+
name: 'dev',
|
|
33
33
|
domain: 'localhost',
|
|
34
34
|
supportedDeploymentTypes: ['CONTAINER']
|
|
35
35
|
}
|
|
@@ -65,7 +65,7 @@ export class ContainerManagerCommands {
|
|
|
65
65
|
deploy(
|
|
66
66
|
username,
|
|
67
67
|
authentication,
|
|
68
|
-
targetEnvironment = '
|
|
68
|
+
targetEnvironment = 'dev',
|
|
69
69
|
pathToDeploymentPlatforms,
|
|
70
70
|
pathToOssyFile
|
|
71
71
|
) {
|