|
5 | 5 | branches: [ ec2-runner ]
|
6 | 6 | workflow_dispatch:
|
7 | 7 | inputs:
|
8 |
| - deploy-fresh: |
| 8 | + deploy_fresh: |
9 | 9 | required: false
|
10 | 10 | type: boolean
|
11 | 11 | description: 'Fresh Deploy OpenSearch and OpenSearch Dashboards'
|
12 | 12 | default: false
|
13 |
| - deploy-upgrade: |
| 13 | + deploy_upgrade: |
14 | 14 | required: false
|
15 | 15 | type: boolean
|
16 | 16 | description: 'Upgrade OpenSearch and OpenSearch Dashboards'
|
17 | 17 | default: true
|
18 |
| - osd-image-tag: |
| 18 | + osd_image_tag: |
19 | 19 | required: true
|
20 | 20 | type: string
|
21 | 21 | description: 'Image tag for OpenSearch Dashboards'
|
22 | 22 | default: '3.0.0-8219474312'
|
23 |
| - osd-image-repo: |
| 23 | + osd_image_repo: |
24 | 24 | required: true
|
25 | 25 | type: string
|
26 | 26 | description: 'Image repo for OpenSearch Dashboards'
|
27 | 27 | default: 'public.ecr.aws/y0r0d3v8/actionrunner'
|
28 |
| - os-image-tag: |
| 28 | + os_image_tag: |
29 | 29 | required: false
|
30 | 30 | type: string
|
31 | 31 | description: 'Image tag for OpenSearch'
|
32 | 32 | default: '3.0.0'
|
33 |
| - os-image-repo: |
| 33 | + os_image_repo: |
34 | 34 | required: false
|
35 | 35 | type: string
|
36 | 36 | description: 'Image repo for OpenSearch'
|
|
57 | 57 | GA_TRACKING_ID: ${{ secrets.GA_TRACKING_ID_FUTURE }}
|
58 | 58 | CERTIFICATE_ARN: ${{ secrets.CERTIFICATE_ARN_FUTURE }}
|
59 | 59 | KIBANASERVER: ${{ secrets.KIBANASERVER }}
|
60 |
| - OSD-IMAGE-TAG: ${{ inputs.osd-image-tag }} |
61 |
| - OSD-IMAGE-REPO: ${{ inputs.osd-image-repo }} |
| 60 | + OSD_IMAGE_TAG: ${{ inputs.osd_image_tag }} |
| 61 | + OSD_IMAGE_REPO: ${{ inputs.osd_image_repo }} |
62 | 62 |
|
63 | 63 | - name: Replace Token in opensearch.yml
|
64 | 64 | uses: cschleiden/replace-tokens@v1
|
|
70 | 70 | ESNODE_CERT: ${{ secrets.esnode_cert }}
|
71 | 71 | ESNODE_KEY_CERT: ${{ secrets.esnode_key_cert }}
|
72 | 72 | ROOT_CA_CERT: ${{ secrets.root_ca_cert }}
|
73 |
| - OS-IMAGE-TAG: ${{ inputs.os-image-tag }} |
74 |
| - OS-IMAGE-REPO: ${{ inputs.os-image-repo }} |
| 73 | + OS_IMAGE_TAG: ${{ inputs.os_image_tag }} |
| 74 | + OS_IMAGE_REPO: ${{ inputs.os_image_repo }} |
75 | 75 | - name: Configure AWS Credentials
|
76 | 76 | uses: aws-actions/configure-aws-credentials@v2
|
77 | 77 | with:
|
|
80 | 80 | aws-region: ${{ secrets.AWS_REGION_PINK }}
|
81 | 81 |
|
82 | 82 | - name: Fresh Deploy OpenSearch and OpenSearch Dashboards By Helm Chart
|
83 |
| - if: ${{ inputs.deploy-fresh }} |
| 83 | + if: ${{ inputs.deploy_fresh }} |
84 | 84 | uses: elastic-analytics/dashboards-action@main
|
85 | 85 | env:
|
86 | 86 | KUBE_CONFIG_DATA: ${{ secrets.AWS_ACCESS_KEY_ID_PINK }}
|
|
93 | 93 | kubectl get nodes
|
94 | 94 |
|
95 | 95 | - name: Upgrade Deploy OpenSearch/OpenSearch Dashboards/ML By Helm Chart
|
96 |
| - if: ${{ inputs.deploy-upgrade }} |
| 96 | + if: ${{ inputs.deploy_upgrade }} |
97 | 97 | uses: elastic-analytics/dashboards-action@main
|
98 | 98 | env:
|
99 | 99 | KUBE_CONFIG_DATA: ${{ secrets.AWS_ACCESS_KEY_ID_PINK }}
|
|
0 commit comments