Skip to content

Commit

Permalink
First release
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulLesur committed Dec 19, 2020
1 parent 09bf6b4 commit 8ec76ba
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ jobs:
name: Wait unavailable docker image
steps:
- name: Wait Docker image
uses: PaulLesur/wait-docker-image-github-action@v0.2.3
uses: PaulLesur/wait-docker-image-github-action@v1.0
with:
image: test/test
tag: master
timeout: 60
fail-on-timeout: false

- name: Wait docker image
uses: PaulLesur/wait-docker-image-github-action@v0.2.3
uses: PaulLesur/wait-docker-image-github-action@v1.0
with:
image: ubuntu
39 changes: 39 additions & 0 deletions README.md
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/wait-docker-image-github-action@v1.0
with:
image: ubuntu
tag: 18.04
timeout: 60
fail-on-timeout: false
```

0 comments on commit 8ec76ba

Please sign in to comment.