Skip to content

Commit

Permalink
Make image_tag optional and update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
whoan committed Sep 23, 2019
1 parent 03d0dbf commit 73bf4f0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Docker registry (**default: Docker Hub's registry**).

### `image_tag`

**Required** Tag of the image to build.
Tag of the image to build (**default: latest**).

### `context`

Expand All @@ -42,10 +42,9 @@ None
## Example usage

```yml
- uses: ./.github/actions/build-and-push-with-cache
- uses: whoan/docker-build-with-cache-action@master
with:
docker_username: "${{ secrets.DOCKER_USERNAME }}"
docker_password: "${{ secrets.DOCKER_PASSWORD }}"
image_name: ${{ github.actor }}/node
image_tag: alpine-slim
```
5 changes: 3 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@ inputs:
description: Name of the image to build
required: true
image_tag:
description: Tag of the image to build
required: true
description: "(Optional) Tag of the image to build (default: latest)"
required: false
default: latest
context:
description: "(Optional) Docker context (default: ./)"
required: false
Expand Down

0 comments on commit 73bf4f0

Please sign in to comment.