File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ while continuing to run the checks as per usual on subsequent health check polli
17
17
18
18
``` typescript
19
19
const smokeTest = (req : Request ) => {
20
- if (process .env .SKIP_HOOK && isHttpHook (req )) {
20
+ if (process .env .SKIP_SMOKE && isHttpHook (req )) {
21
21
// Expedite deployment even if dependencies are unhealthy.
22
22
return ;
23
23
}
@@ -34,6 +34,19 @@ Checks for a `user-agent` header that starts with either:
34
34
35
35
Compatible with Gantry v2.3.7 and newer.
36
36
37
+ ` SKIP_SMOKE ` will require additional setup. Consider setting the environment variable on your lambda based on the surrounding CI environment:
38
+
39
+ ``` typescript
40
+ import { containsSkipDirective } from ' @seek/aws-codedeploy-hooks' ;
41
+
42
+ const lambdaEnvironment = {
43
+ SKIP_SMOKE: containsSkipDirective (process .env .BUILDKITE_MESSAGE , ' smoke' )
44
+ ? ' true'
45
+ : undefined ,
46
+ // ... other environment variables
47
+ };
48
+ ```
49
+
37
50
### ` isLambdaHook `
38
51
39
52
Whether the Lambda invocation originated from AWS CodeDeploy Hooks.
You can’t perform that action at this time.
0 commit comments