1
0
Fork 0
ostree-native-containers/.forgejo/workflows/build-image.yaml
ver4a 33a6cde64d
Some checks failed
/ build-image (push) Failing after 2s
Build with --squash-all
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.
2024-11-06 09:46:45 +01:00

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