-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
45021db
commit 990efab
Showing
2 changed files
with
54 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters