This action builds your docker image, caching the stages to improve building times in subsequent builds.
Required Docker's registry user.
Required Docker's registry password.
Docker registry (default: Docker Hub's registry).
Required Docker's registry user.
Required Tag of the image to build.
Docker context (default: ./).
Set to false
to avoid pushing to registry (default: true).
You might want to set this option to false
if you plan to use this action for PRs to avoid overriding cached stages in the registry.
None
- uses: ./.github/actions/build-and-push-with-cache
with:
docker_username: "${{ secrets.DOCKER_USERNAME }}"
docker_password: "${{ secrets.DOCKER_PASSWORD }}"
image_name: ${{ github.actor }}/node
image_tag: alpine-slim