-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
2 changed files
with
41 additions
and
2 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
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,2 +1,41 @@ | ||
# wait-docker-image-github-action | ||
A simple Github Action waiting for a Docker image. | ||
|
||
## Inputs | ||
|
||
### Required | ||
#### `image` | ||
_String_ | ||
The name of the image to wait for. | ||
|
||
### Optional | ||
#### `tag` | ||
_String_ | ||
Optional tag for the image, default: `latest` | ||
|
||
#### `timeout` | ||
_Integer_ | ||
Timeout in seconds, default: `3600` | ||
|
||
#### `fail-on-timeout` | ||
_Boolean_ | ||
Wether to fail the job or not if the timeout is over, default: `true` | ||
|
||
#### `user` | ||
_String_ | ||
Registry user to use. | ||
|
||
#### `password` | ||
_String_ | ||
Registry password to use. | ||
|
||
## Example usage | ||
Example usage to wait for ubuntu:18.04 image to be available, if the image is not available after 1 minute, the job does not fail and continues. | ||
``` | ||
uses: PaulLesur/[email protected] | ||
with: | ||
image: ubuntu | ||
tag: 18.04 | ||
timeout: 60 | ||
fail-on-timeout: false | ||
``` |