Skip to content

Commit

Permalink
mrt-dashbaord tag report
Browse files Browse the repository at this point in the history
  • Loading branch information
terrywbrady committed Aug 16, 2024
1 parent e6659a0 commit 6b60d58
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions buildspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,32 @@ phases:
docker build --push --quiet \
--build-arg ECR_REGISTRY=${ECR_REGISTRY} \
-t ${ECR_REGISTRY}/mrt-dashboard:${DOCKTAG} .
# report results
- mkdir -p reports
- RPT=reports/mrt-dashboard
- echo "## Semantic Tags" > $RPT
- |
git for-each-ref --sort=-creatordate --format '- %(refname) (%(creatordate:short))' refs/tags \
| egrep "tags/[0-9]+\.[0-9]+\.[0-9]+ " \
| sed -e "s/refs\/tags\///" | head -10 >> $RPT
- echo "## Feature Tags" >> $RPT
- |
git for-each-ref --sort=-creatordate --format '- %(refname) (%(creatordate:short))' refs/tags \
| egrep -v "tags/[0-9]+\.[0-9]+\.[0-9]+ " \
| egrep -v "sprint-" \
| sed -e "s/refs\/tags\///" | head -10 >> $RPT
- |
for img in mrt-dashboard
do
echo "## Docker Image Tags $img" >> $RPT
aws ecr list-images --repository-name $img --filter tagStatus=TAGGED --output=text \
| cut -f3 \
| sed -e "s/^/- /" >> $RPT
done
- aws s3 cp $RPT s3://${S3CFBUCKET}/$RPT
- aws s3 cp swagger.html s3://${S3CFBUCKET}/api/mrt-dashboard/index.html
- aws s3 cp swagger.yml s3://${S3CFBUCKET}/api/mrt-dashboard/
- aws cloudfront create-invalidation --distribution-id ${CFDISTRIBUTIONID} --paths /reports/* --region us-east-1
- aws cloudfront create-invalidation --distribution-id ${CFDISTRIBUTIONID} --paths /api/mrt-dashboard/ --region us-east-1

0 comments on commit 6b60d58

Please sign in to comment.