From 5505406d6758cb46ab40d9f3003678b6258988bc Mon Sep 17 00:00:00 2001 From: Jordan Pryde Date: Sat, 23 Mar 2024 19:35:36 -0700 Subject: [PATCH] enable cache --- .github/workflows/build.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9c898bb..c73a61e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -10,6 +10,8 @@ jobs: my-ostree-build: name: Build Custom Image runs-on: ubuntu-latest + env: + BB_BUILDKIT_CACHE_GHA: true permissions: contents: read packages: write @@ -21,11 +23,17 @@ jobs: # !! Add your recipes here - fedora-kinoite-laptop.yml steps: - # the build is fully handled by the reusable github action + # This is required in order to take advantage of docker's cache integration with GitHub Actions.experimental + # https://github.com/moby/buildkit?tab=readme-ov-file#github-actions-cache- + - name: Expose GitHub Runtime + uses: crazy-max/ghaction-github-runtime@v3 + + # the build is fully handled by the reusable github action - name: Build Custom Image - uses: blue-build/github-action@v1.2 + uses: blue-build/github-action@main with: recipe: ${{ matrix.recipe }} cosign_private_key: ${{ secrets.SIGNING_SECRET }} registry_token: ${{ github.token }} pr_event_number: ${{ github.event.number }} + use_unstable_cli: true