-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
68 lines (68 loc) · 2.08 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: 'Tailcall Deploy Action'
description: 'Deploy Tailcall application with AWS and Fly.io configurations'
inputs:
provider:
description: 'Cloud Provider'
required: true
tailcall-config:
description: 'Tailcall configuration file'
required: true
tailcall-version:
description: 'Tailcall version'
required: false
default: 'latest'
aws-access-key-id:
description: 'AWS Access Key ID'
required: false
aws-secret-access-key:
description: 'AWS Secret Access Key'
required: false
aws-region:
description: 'AWS Region'
required: false
aws-iam-role:
description: 'AWS IAM Role'
required: false
default: 'iam_for_tailcall'
aws-lambda-function-name:
description: 'AWS Lambda Function Name'
required: false
default: 'tailcall'
terraform-api-token:
description: 'Terraform API token'
required: false
terraform-org:
description: 'Terraform Organization'
required: false
terraform-workspace:
description: 'Terraform Workspace'
required: false
fly-api-token:
description: 'Fly.io API token'
required: false
fly-app-name:
description: 'Fly.io App Name'
required: false
default: "${{ github.repository_owner }}-${{ github.event.repository.name }}"
fly-region:
description: 'Fly.io Region'
required: false
default: 'ord'
runs:
using: 'docker'
image: 'Dockerfile'
env:
PROVIDER: ${{ inputs.provider }}
AWS_ACCESS_KEY_ID: ${{ inputs.aws-access-key-id }}
AWS_SECRET_ACCESS_KEY: ${{ inputs.aws-secret-access-key }}
AWS_REGION: ${{ inputs.aws-region }}
AWS_IAM_ROLE: ${{ inputs.aws-iam-role }}
AWS_LAMBDA_FUNCTION_NAME: ${{ inputs.aws-lambda-function-name }}
TERRAFORM_API_TOKEN: ${{ inputs.terraform-api-token }}
TERRAFORM_ORG: ${{ inputs.terraform-org }}
TERRAFORM_WORKSPACE: ${{ inputs.terraform-workspace }}
FLY_API_TOKEN: ${{ inputs.fly-api-token }}
FLY_APP_NAME: ${{ inputs.fly-app-name }}
FLY_REGION: ${{ inputs.fly-region }}
TAILCALL_VERSION: ${{ inputs.tailcall-version }}
TAILCALL_CONFIG: ${{ inputs.tailcall-config }}