Skip to content

Commit

Permalink
chore: add readme
Browse files Browse the repository at this point in the history
  • Loading branch information
YusufMavzer committed Nov 6, 2023
1 parent 45021db commit 990efab
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 3 deletions.
55 changes: 52 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,53 @@
View the README in the action folder for more details.

## polling-action (awscurl-polling-action)
# awscurl-polling-action
A Github action which uses awscurl to poll an AWS endpoint

## Example
```yaml
name: Sample
on:
workflow_dispatch
jobs:
one:
runs-on: ubuntu-latest
steps:
- name: awscurl-polling-action
id: awscurl-polling-action
uses: informatievlaanderen/awscurl-polling-action@main
with:
environment: stg
version: ${{ secrets.VERSION }}
status-url: ${{ secrets.STATUS_URL }}
deploy-url: ${{ secrets.DEPLOY_URL }}
access-key: ${{ secrets.ACCESS_KEY }}
secret-key: ${{ secrets.SECRET_KEY }}
region: eu-west-1
interval: 2
deploy-target: 'none'
- name: output
shell: bash
run: |
echo build-uuid: ${{ steps.awscurl-polling-action.outputs.build-uuid }}
echo Status: ${{ steps.awscurl-polling-action.outputs.status }}
echo ${{ steps.awscurl-polling-action.outputs.final-message }}
```
### Inputs
|Argument| Description | Default | Required |
|--------|-------------|---------|----------|
| environment | The environment in which it should be deployed e.g. `test`, `beta`, `tni`, `stg`, `prd` | `stg` | Yes |
| version | The release version. | - | Yes |
| status-url | The status url for fetching the deploy status | - | Yes |
| deploy-url | The deploy url for sending a request for deployment | - | Yes |
| access-key | AWS Access Key | - | Yes |
| secret-key | AWS Secret Key | - | Yes |
| region | AWS Region | `eu-west-1` | No |
| interval | Polling interval in seconds | 2 | No |
| deploy-target | `none`, `beanstalk`, `ecs`, `ecs_service`, `agb_ecs_service`, `ecs_scheduled_task` | `none` | No |

### Outputs
|Argument| Description |
|--------|-------------|
| build-uuid | Identifier |
| status | Final build status |
| final-message | extra info about the build |
2 changes: 2 additions & 0 deletions polling-action/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
secret-key: ${{ secrets.SECRET_KEY }}
region: eu-west-1
interval: 2
deploy-target: 'none'
- name: output
shell: bash
run: |
Expand All @@ -42,6 +43,7 @@ jobs:
| secret-key | AWS Secret Key | - | Yes |
| region | AWS Region | `eu-west-1` | No |
| interval | Polling interval in seconds | 2 | No |
| deploy-target | `none`, `beanstalk`, `ecs`, `ecs_service`, `agb_ecs_service`, `ecs_scheduled_task` | `none` | No |

### Outputs
|Argument| Description |
Expand Down

0 comments on commit 990efab

Please sign in to comment.