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.
10 lines
433 B
YAML
10 lines
433 B
YAML
on: [push]
|
|
jobs:
|
|
build-image:
|
|
runs-on: shell
|
|
steps:
|
|
- 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-all -t docker://${{ vars.REGISTRY_DOMAIN }}/${{ vars.MAIN_IMAGE }}:40
|
|
- run: podman image prune -f
|