You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: action.yml
+15-25Lines changed: 15 additions & 25 deletions
Original file line number
Diff line number
Diff line change
@@ -1,78 +1,68 @@
1
1
name: "Blue/Green Beanstalk"
2
-
description: "GitHub Action to automate deployment to Blue/Green environments on AWS Elastic Beanstalk."
2
+
description: "Deploy to blue/green environments on AWS Elastic Beanstalk."
3
3
inputs:
4
4
app_name:
5
5
description: "Name of the Elastic Beanstalk application. If it doesn't exist, it will be created."
6
6
required: true
7
7
aws_access_key_id:
8
8
description: "AWS Access Key ID. May instead be specified via the AWS_ACCESS_KEY_ID environment variable."
9
-
required: false
10
9
aws_region:
11
10
description: "AWS region. May instead be specified via the AWS_REGION environment variable."
12
-
required: false
13
11
aws_secret_access_key:
14
12
description: "AWS Secret Access Key. May instead be specified via the AWS_SECRET_ACCESS_KEY environment variable."
15
-
required: false
16
13
aws_session_token:
17
14
description: "AWS session token for using temporary credentials. May instead be specified via the AWS_SESSION_TOKEN environment variable."
18
-
required: false
19
15
blue_env:
20
-
description: "Name of the Blue environment."
16
+
description: "Name of the blue environment."
21
17
required: true
22
18
deploy:
23
19
description: "Whether to deploy the new application version to the target environment."
24
-
required: true
25
-
default: true
20
+
default: false
26
21
green_env:
27
-
description: "Name of the Green environment."
22
+
description: "Name of the green environment."
28
23
required: true
29
24
option_settings:
30
25
description: "Path to a JSON file of option settings to use when creating a new environment. When using custom option settings, the default option settings will be ignored, but the SharedLoadBalancer will still be provided when using the `shared_alb` strategy."
31
-
required: false
32
26
platform_branch_name:
33
27
description: "Name of the platform branch to use. When creating a new environment, it will be launched with the latest version of the specified platform branch. To see the list of available platform branches, run the `aws elasticbeanstalk list-platform-branches` command."
34
-
required: true
28
+
prep:
29
+
description: "When prep is set to true, the action will exit if the target environment is healthy, or create a new environment if it is not healthy. This is useful for preparing the target environment, e.g. with the sample application, before deploying a new application version in a later step."
30
+
default: false
35
31
ports:
36
32
description: "Comma-separated list of ALB listener ports for use with the `shared_alb` strategy. When using the action to create an ALB, HTTP listeners will be created for each port. To enable HTTPS, port 443 must be configured on the ALB with ACM. When using an existing ALB, the action will update each specified port's default listener rule to point to the target environment if `promote` is set to true."
37
-
required: true
38
33
default: "80"
39
34
production_cname:
40
35
description: "CNAME prefix for the domain that serves production traffic. Only required for the `swap_cnames` strategy."
41
-
required: false
42
36
promote:
43
37
description: "Whether to promote the target environment to production. When using the `swap_cnames` strategy, the action will swap the CNAMEs of the blue and green environments to redirect production traffic to the target environment. When using the `shared_alb` strategy, the action will update the shared Application Load Balancer's default listener rule to point to the target environment, replacing the other environment."
44
-
required: true
45
-
default: true
38
+
default: false
46
39
staging_cname:
47
40
description: "CNAME prefix for the staging environment when using the `swap_cnames` strategy."
48
-
required: false
49
41
source_bundle:
50
42
description: "Path to the source bundle to deploy. If not specified, the sample application will be used."
51
-
required: false
52
43
strategy:
53
44
description: "Deployment strategy to use: `swap_cnames` or `shared_alb`. See the `promote` input description for more details."
54
-
required: true
55
45
default: "swap_cnames"
56
46
template_name:
57
47
description: "Name of an Elastic Beanstalk configuration template to use when creating a new environment."
58
-
required: false
59
48
terminate_unhealthy_environment:
60
49
description: "Whether to terminate an unhealthy target environment. If set to false, the action will exit with an error when the target environment is unhealthy."
61
-
required: true
62
50
default: true
63
51
version_description:
64
52
description: "Description to use for the new application version."
65
-
required: false
66
53
version_label:
67
54
description: "Version label to use for the new application version."
68
-
required: false
55
+
wait_for_deployment:
56
+
description: "Whether to wait for the deployment or environment creation to complete."
57
+
default: true
69
58
wait_for_environment:
70
-
description: "Whether to wait for an environment to update or terminate. If set to false, the action will exit with a non-error code during deployment, or exit with an error when the environment is terminating or otherwise not ready."
71
-
required: true
59
+
description: "Whether to wait for the target environment to be ready before deployment."
60
+
default: true
61
+
wait_for_termination:
62
+
description: "Whether to wait for an environment to be terminated."
72
63
default: true
73
64
use_default_option_settings:
74
65
description: "Whether to use default option settings when creating a new environment."
0 commit comments