File tree 1 file changed +57
-0
lines changed
1 file changed +57
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Test ECH Environment
2
+ run-name : Creating ECH Environment by @${{ github.actor }}
3
+
4
+ on :
5
+ workflow_dispatch :
6
+ schedule :
7
+ - cron : ' 0 4 * * *' # every day at 04:00
8
+
9
+ jobs :
10
+ naming :
11
+ runs-on : ubuntu-latest
12
+ outputs :
13
+ deployment_name : ${{ steps.set-variables.outputs.date-name }}
14
+ stack_version : ${{ steps.set-variables.outputs.stack-version }}
15
+ steps :
16
+ - name : Check out the repo
17
+ uses : actions/checkout@v4
18
+
19
+ - name : Hermit Environment
20
+ uses : ./.github/actions/hermit
21
+
22
+ - name : Set variables
23
+ id : set-variables
24
+ env :
25
+ STACK_VERSION : ${{ env.ELK_VERSION }}
26
+ run : |
27
+ date_name=$(echo "prd-ech-$(date +'%d%b%H%M')" | tr '[:upper:]' '[:lower:]')
28
+ echo "date-name=$date_name" >> $GITHUB_OUTPUT
29
+ echo "stack-version=$STACK_VERSION" >> $GITHUB_OUTPUT
30
+
31
+ deploy :
32
+ needs : naming
33
+ uses : ./.github/workflows/test-environment.yml
34
+ secrets : inherit
35
+ # Required for the 'Deploy' job in the 'test-environment.yml' to authenticate with Google Cloud (gcloud).
36
+ permissions :
37
+ contents : ' read'
38
+ id-token : ' write'
39
+ with :
40
+ deployment_name : ${{ needs.naming.outputs.deployment_name }}
41
+ elk-stack-version : ${{ needs.naming.outputs.stack_version }}
42
+ ess-region : " gcp-us-west2"
43
+ serverless_mode : false
44
+ run-sanity-tests : true
45
+ expiration_days : 0
46
+
47
+ destroy_environment :
48
+ needs : ["naming", "deploy"]
49
+ uses : ./.github/workflows/destroy-environment.yml
50
+ secrets : inherit
51
+ # Required for the 'Destroy' job in the 'destroy-environment.yml'
52
+ permissions :
53
+ contents : ' read'
54
+ id-token : ' write'
55
+ if : success()
56
+ with :
57
+ prefix : ${{ needs.naming.outputs.deployment_name }}
You can’t perform that action at this time.
0 commit comments