Skip to content

Commit

Permalink
feat(serverless): add support to passthrough config type to gtm-worker
Browse files Browse the repository at this point in the history
  • Loading branch information
wyvern8 committed Jul 15, 2018
1 parent 8169a79 commit 52ce0d5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .envExample
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ GTM_SLS_EXECUTOR_VPC_SUBNET_B=
GTM_SLS_EXECUTOR_VPC_SUBNET_C=
GTM_SLS_EXECUTOR_AWS_KMS_KEY_ID=
GTM_SLS_EXECUTOR_SNS_ERROR_TOPIC_ARN=
GTM_SLS_EXECUTOR_CONFIG_TYPE=<ssm or spring or dotenv>
GTM_SLS_EXECUTOR_SPRING_CONFIG_ENDPOINT=http://spring:8888
GTM_WORKER_SCRIPTS_CLONE=<optional git repo https url to clone and overlay>
GTM_WORKER_SCRIPTS_PATH=<path within scripts dir to use as overlay>

Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@ Create an asynchronous CI agnostic mechanism for running custom test stage gates
|GTM_SLS_EXECUTOR_VPC_SUBNET_B| vpc az subnet |
|GTM_SLS_EXECUTOR_VPC_SUBNET_C| vpc az subnet |
|GTM_SLS_EXECUTOR_AWS_KMS_KEY_ID| kms key id for sls env var encryption |
|GTM_SLS_EXECUTOR_CONFIG_TYPE|'ssm' (aws parameter store) or 'spring' or 'dotenv'|
|GTM_SLS_EXECUTOR_SPRING_CONFIG_ENDPOINT|endpoint url of spring config server eg. http://spring:8888 if GTM_SLS_EXECUTOR_CONFIG_TYPE is 'spring'|
|GTM_WORKER_SCRIPTS_CLONE| for docker executors using https://github.com/zotoio/gtm-worker based image - url of git repo to overlay on workspace eg. https://github.com/zotoio/gtm-worker-scripts.git |
|GTM_WORKER_SCRIPTS_PATH| directory within scripts clone repo to overlay|

Expand Down
2 changes: 2 additions & 0 deletions src/executors/ExecutorDockerServerless.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,8 @@ export class ExecutorDockerServerless extends ExecutorDocker {
SLS_VPC_SUBNET_B: process.env.GTM_SLS_EXECUTOR_VPC_SUBNET_B,
SLS_VPC_SUBNET_C: process.env.GTM_SLS_EXECUTOR_VPC_SUBNET_C,
SLS_AWS_KMS_KEY_ID: process.env.GTM_SLS_EXECUTOR_AWS_KMS_KEY_ID,
SLS_CONFIG_TYPE: process.env.GTM_SLS_EXECUTOR_CONFIG_TYPE,
SLS_SPRING_CONFIG_ENDPOINT: process.env.GTM_SLS_EXECUTOR_SPRING_CONFIG_ENDPOINT,
GTM_WORKER_SCRIPTS_CLONE: process.env.GTM_WORKER_SCRIPTS_CLONE,
GTM_WORKER_SCRIPTS_PATH: process.env.GTM_WORKER_SCRIPTS_PATH
},
Expand Down

0 comments on commit 52ce0d5

Please sign in to comment.