Skip to content

Commit

Permalink
ci: run kas clean and purge after build
Browse files Browse the repository at this point in the history
By that we cover the more complex processing of purge in the container
as well (e.g. purging the overlapping mountpoints /work and /build).

Signed-off-by: Felix Moessbauer <[email protected]>
  • Loading branch information
fmoessbauer committed Mar 6, 2025
1 parent c505aa9 commit dbb08d0
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/next.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,15 @@ jobs:
run: |
cd image-tests/${{ matrix.image-name }}
../../kas-container build kas.yml
[ -d build/tmp ]
echo "Test kas clean"
../../kas-container clean kas.yml
! [ -d build/tmp/deploy ]
[ -d build/sstate-cache ] && [ -d build/downloads ]
[ -d poky ] || [ -d isar ]
echo "Test kas purge"
../../kas-container purge kas.yml
! [ -d poky ] && ! [ -d isar ] && ! [ -d build ]
- name: Complete build and deploy ${{ matrix.image-name }} image
if: github.ref == 'refs/heads/next'
uses: docker/build-push-action@v6
Expand Down

0 comments on commit dbb08d0

Please sign in to comment.