@@ -2,7 +2,7 @@ name: scheduled-workflow
2
2
3
3
on :
4
4
schedule :
5
- - cron : ' 0 4 * * 3,5 '
5
+ - cron : ' 0 4 * * * '
6
6
7
7
jobs :
8
8
build-us-west-2 :
@@ -20,22 +20,31 @@ jobs:
20
20
aws-secret-access-key : ${{ secrets.BUILD_AWS_SECRET_ACCESS_KEY }}
21
21
aws-region : us-west-2
22
22
23
-
24
23
- name : Generate short sha
25
24
run : |
26
25
echo "SHORT_SHA=`git rev-parse --short HEAD`" >> $GITHUB_ENV
27
26
28
-
29
27
- name : Run build script
30
28
run : |
31
29
cd deployment
32
30
MIE_STACK_NAME=mie-dev
33
31
REGION=us-west-2
34
32
VERSION=$SHORT_SHA
35
33
DIST_OUTPUT_BUCKET=mie-dev
36
- TEMPLATE_OUTPUT_BUCKET=mie-dev
37
- ./build-s3-dist.sh --no-layer --template-bucket $TEMPLATE_OUTPUT_BUCKET --code-bucket $DIST_OUTPUT_BUCKET --version $VERSION --region $REGION
38
- aws cloudformation deploy --stack-name $MIE_STACK_NAME --template-file dist/media-insights-stack.template --s3-bucket $DIST_OUTPUT_BUCKET-$REGION --s3-prefix media_insights_engine/$VERSION --parameter-overrides DeployTestResources=true MaxConcurrentWorkflows=10 DeployAnalyticsPipeline=true EnableXrayTrace=true --capabilities CAPABILITY_IAM CAPABILITY_NAMED_IAM CAPABILITY_AUTO_EXPAND --force-upload
34
+ TEMPLATE_OUTPUT_BUCKET=mie-dev-us-west-2
35
+ ./build-s3-dist.sh --no-layer --template-bucket $TEMPLATE_OUTPUT_BUCKET --code-bucket $DIST_OUTPUT_BUCKET --version $VERSION --region $REGION
36
+ aws cloudformation deploy --stack-name $MIE_STACK_NAME --template-file global-s3-assets/media-insights-stack.template --s3-bucket $DIST_OUTPUT_BUCKET-$REGION --s3-prefix media_insights_engine/$VERSION --parameter-overrides DeployTestResources=true MaxConcurrentWorkflows=10 DeployAnalyticsPipeline=true EnableXrayTrace=true --capabilities CAPABILITY_IAM CAPABILITY_NAMED_IAM CAPABILITY_AUTO_EXPAND --force-upload
37
+
38
+ - name : Build Failed
39
+ if : ${{ failure() }}
40
+ uses :
nashmaniac/[email protected]
41
+ with :
42
+ title : Nightly build for $SHORT_SHA Failed
43
+ token : ${{secrets.GITHUB_TOKEN}}
44
+ assignees : brandold, ianwow, aburkleaux-amazon
45
+ labels : bug
46
+ body : Nightly build failed for commit ${{github.sha}}
47
+
39
48
40
49
test-us-west-2 :
41
50
needs : build-us-west-2
56
65
aws-secret-access-key : ${{ secrets.TEST_AWS_SECRET_ACCESS_KEY }}
57
66
aws-region : us-west-2
58
67
68
+ - name : Generate short sha
69
+ run : |
70
+ echo "SHORT_SHA=`git rev-parse --short HEAD`" >> $GITHUB_ENV
71
+
59
72
- name : Run cfn_nag
60
73
uses : stelligent/cfn_nag@master
61
74
continue-on-error : true
74
87
cd $GITHUB_WORKSPACE
75
88
cd test/integ
76
89
./run_integ.sh
90
+
77
91
- name : Run E2E tests
78
92
run : |
79
93
cd $GITHUB_WORKSPACE
80
94
cd test/e2e
81
95
./run_e2e.sh
96
+
97
+ - name : Test Failed
98
+ if : ${{ failure() }}
99
+ uses :
nashmaniac/[email protected]
100
+ with :
101
+ title : Nightly test for $SHORT_SHA Failed
102
+ token : ${{secrets.GITHUB_TOKEN}}
103
+ assignees : brandold, ianwow, aburkleaux-amazon
104
+ labels : bug
105
+ body : Nightly test failed for commit ${{github.sha}}
0 commit comments