1
0
Fork 0

Build with --squash-all
Some checks failed
/ build-image (push) Failing after 2s

This makes removing packages from base image actually reduce image size
(downloads will be smaller), but prevents sharing of layers, increasing space usage on registry.
This commit is contained in:
ver4a 2024-11-06 09:37:07 +01:00
parent 622664ece1
commit 33a6cde64d

View file

@ -6,5 +6,5 @@ jobs:
- uses: actions/checkout@v4
- run: cd ${{ env.GITHUB_WORKSPACE }}
- run: podman login -u ${{ vars.REGISTRY_USERNAME }} -p ${{ secrets.REGISTRY_PASSWORD }} ${{ vars.REGISTRY_DOMAIN }}
- run: podman build . --no-cache --pull newer --squash -t docker://${{ vars.REGISTRY_DOMAIN }}/${{ vars.MAIN_IMAGE }}:40
- run: podman build . --no-cache --pull newer --squash-all -t docker://${{ vars.REGISTRY_DOMAIN }}/${{ vars.MAIN_IMAGE }}:40
- run: podman image prune -f