aws / amazon-ecs-ami

Packer recipes for building the official ECS-optimized Amazon Linux AMIs
https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html
Apache License 2.0
205 stars 47 forks source link

Add Metrics to release actions #206

Closed hozkaya2000 closed 9 months ago

hozkaya2000 commented 9 months ago

Summary

Adds metric publishing to keep track of Github Action status for Enhanced ECS Optimized AMI Release.

Implementation details

A new job is added under the github actions that checks the result of the previous jobs. Based on their result, the appropriate metric is published.

Testing

Tested on hozkaya2000/amazon-ecs-ami fork, metrics were published and manually verified.

Example workflows:

ManualTrigger Run:

https://github.com/hozkaya2000/amazon-ecs-ami/actions/runs/7891946076

InitiateRelease No Release Scenario:

https://github.com/hozkaya2000/amazon-ecs-ami/actions/runs/7891592873/job/21536259029

InitiateRelease Failure Scenario:

https://github.com/hozkaya2000/amazon-ecs-ami/actions/runs/7891380634/job/21535645058

New tests cover the changes: n/a

Description for the changelog

ECS Optimized AMI Release Github Action -- Metrics Addition

Licensing

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.