Skip to content

Commit 204a229

Browse files
v2.0.3 release (#373)
Co-authored-by: GitHub Actions <[email protected]>
1 parent fa7d23c commit 204a229

22 files changed

+1652
-547
lines changed

.github/workflows/scheduled-workflow.yml

+30-6
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: scheduled-workflow
22

33
on:
44
schedule:
5-
- cron: '0 4 * * 3,5'
5+
- cron: '0 4 * * *'
66

77
jobs:
88
build-us-west-2:
@@ -20,22 +20,31 @@ jobs:
2020
aws-secret-access-key: ${{ secrets.BUILD_AWS_SECRET_ACCESS_KEY }}
2121
aws-region: us-west-2
2222

23-
2423
- name: Generate short sha
2524
run: |
2625
echo "SHORT_SHA=`git rev-parse --short HEAD`" >> $GITHUB_ENV
2726
28-
2927
- name: Run build script
3028
run: |
3129
cd deployment
3230
MIE_STACK_NAME=mie-dev
3331
REGION=us-west-2
3432
VERSION=$SHORT_SHA
3533
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+
3948

4049
test-us-west-2:
4150
needs: build-us-west-2
@@ -56,6 +65,10 @@ jobs:
5665
aws-secret-access-key: ${{ secrets.TEST_AWS_SECRET_ACCESS_KEY }}
5766
aws-region: us-west-2
5867

68+
- name: Generate short sha
69+
run: |
70+
echo "SHORT_SHA=`git rev-parse --short HEAD`" >> $GITHUB_ENV
71+
5972
- name: Run cfn_nag
6073
uses: stelligent/cfn_nag@master
6174
continue-on-error: true
@@ -74,8 +87,19 @@ jobs:
7487
cd $GITHUB_WORKSPACE
7588
cd test/integ
7689
./run_integ.sh
90+
7791
- name: Run E2E tests
7892
run: |
7993
cd $GITHUB_WORKSPACE
8094
cd test/e2e
8195
./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}}

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ regional-s3-assets/
66
package/
77
node_modules/
88
source/web_site/build/
9+
deployment/templateUrl.txt
910
deployment/lambda_layer_factory/*.whl
1011
deployment/lambda_layer_factory/*.zip
1112
deployment/lambda_layer_factory/lambda_layer-python-*

CHANGELOG.md

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Change Log
2+
All notable changes to this project will be documented in this file.
3+
4+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6+
7+
## [1.0.0] - 2021-04-01
8+
- Initial release.
9+
10+
### Added
11+
- Everything.
12+
13+
### Changed
14+
- Nothing. This is the first release.
15+
16+
### Removed
17+
- Nothing. This is the first release.
18+

0 commit comments

Comments
 (0)