diff --git a/README.md b/README.md index e09630b..52dc0d5 100644 --- a/README.md +++ b/README.md @@ -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` @@ -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 ``` diff --git a/action.yml b/action.yml index 74fbd24..2d6cb6a 100644 --- a/action.yml +++ b/action.yml @@ -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