Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/geekcell/github-action-aws-codedeploy-wait
Simple action to wait for an AWS CodeDeploy job to be in a desired state.
https://github.com/geekcell/github-action-aws-codedeploy-wait
aws codedeploy deployment github-actions
Last synced: about 1 month ago
JSON representation
Simple action to wait for an AWS CodeDeploy job to be in a desired state.
- Host: GitHub
- URL: https://github.com/geekcell/github-action-aws-codedeploy-wait
- Owner: geekcell
- License: apache-2.0
- Created: 2023-04-25T11:47:00.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-06-28T13:40:54.000Z (over 1 year ago)
- Last Synced: 2025-01-09T23:45:48.063Z (about 1 month ago)
- Topics: aws, codedeploy, deployment, github-actions
- Homepage: https://www.geekcell.io
- Size: 8.79 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![Geek Cell GmbH](https://raw.githubusercontent.com/geekcell/.github/main/geekcell-github-banner.png)](https://www.geekcell.io/)
## Description
Wait for an AWS CodeDeploy deployment to finish. Will poll the CodeDeploy API until the deployment is finished or failed.
## Usage
#### Advanced Example
``` yaml
## Create new CodeDeploy deployment
- name: Deploy Amazon ECS
id: deploy-ecs
uses: aws-actions/amazon-ecs-deploy-task-definition@v1
with:
cluster: my-cluster
service: my-service
task-definition: task-definition.yamlcodedeploy-appspec: appspec.yaml
codedeploy-application: my-application
codedeploy-deployment-group: my-deployment-group## Wait for ECS Blue Deployment
- name: Wait for blue instances to be ready
uses: geekcell/[email protected]
with:
codedeploy-deployment-id: steps.deploy-ecs.outputs.codedeploy-deployment-id## Run smoke tests
- name: Run tests
run: yarn cypress run## Shift traffic if tests passed
- name: Shift Traffic
run: aws deploy continue-deployment --deployment-id ${{ needs.deployment.outputs.codedeploy-deployment-id }}
```## Inputs
| parameter | description | required | default |
| --- | --- | --- | --- |
| codedeploy-deployment-id | The ID of the CodeDeploy deployment to check. | `true` | |
| sleep-between-requests | How many seconds to sleep between requests to the CodeDeploy API to check the status. | `false` | 5 |## Runs
This action is a `composite` action.