@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 CHANGED
@@ -28460,20 +28460,22 @@ class CaddyClient {
28460
28460
  },
28461
28461
  tls: {
28462
28462
  automation: {
28463
- policies: {
28464
- issuers: [
28465
- {
28466
- module: 'acme',
28467
- challenges: {
28468
- dns: {
28469
- provider: {
28470
- name: 'route53'
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: 'local-dev',
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 = 'local-dev',
28770
+ targetEnvironment = 'dev',
28769
28771
  pathToDeploymentPlatforms,
28770
28772
  pathToOssyFile
28771
28773
  ) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ossy/deployment-tools",
3
- "version": "0.0.9",
3
+ "version": "0.0.11",
4
4
  "description": "Collection of scripts and tools to aid deployment of containers and static files",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
@@ -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
- issuers: [
63
- {
64
- module: 'acme',
65
- challenges: {
66
- dns: {
67
- provider: {
68
- name: 'route53'
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: 'local-dev',
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 = 'local-dev',
68
+ targetEnvironment = 'dev',
69
69
  pathToDeploymentPlatforms,
70
70
  pathToOssyFile
71
71
  ) {
package/src/Caddyfile DELETED
@@ -1,18 +0,0 @@
1
- *.qa.ossy.com {
2
-
3
- tls {
4
- dns 123123
5
- }
6
-
7
- @foo host ci.qa.example.com
8
- handle @foo {
9
- reverse_proxy * {
10
- to localhost:3005
11
- }
12
- }
13
-
14
- handle {
15
- respond "Wrong turn!"
16
- }
17
-
18
- }