Add the --current-size and --exit-zero to optionally show current docker image size and avoid stop the CI even if exceed max_size and max-layers #255
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
name: disl | |
on: | |
pull_request: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: 'Build named dockerfile' | |
run: | | |
docker build . --tag wemake-services/docker-image-size-limit:latest | |
- uses: wemake-services/docker-image-size-limit@master | |
with: # we lint this image by itself: | |
image: 'wemake-services/docker-image-size-limit:latest' | |
size: 405MB | |
max_layers: 10 |