Skip to content

Commit 152d47b

Browse files
authored
chore: Switch to the new cache layers feature for BlueBuild (#80)
1 parent d0a3ab0 commit 152d47b

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

action.yml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,7 @@ inputs:
7070
default: "false"
7171
use_cache:
7272
description: |
73-
Make use of docker buildx cache. This is an experimental feature of docker buildx
74-
so it isn't guaranteed to work.
75-
Input must match the string 'true' for the step to be enabled.
73+
Make use of layer cache by pushing the layers to the registry. Input must match the string 'true' for the step to be enabled.
7674
required: false
7775
default: "true"
7876
squash:
@@ -191,12 +189,6 @@ runs:
191189
sudo docker rm blue-build-installer
192190
bluebuild --version
193191
194-
# Required in order for docker buildx to
195-
# take advantage of the GHA cache API
196-
- name: Expose GitHub Runtime
197-
if: ${{ inputs.use_cache == 'true' && inputs.squash != 'true' && inputs.rechunk != 'true' }}
198-
uses: crazy-max/ghaction-github-runtime@v3
199-
200192
# blue-build/cli does the heavy lifting
201193
- name: Build Image
202194
shell: bash
@@ -209,7 +201,7 @@ runs:
209201
BB_REGISTRY: ${{ inputs.registry }}
210202
BB_REGISTRY_NAMESPACE: ${{ inputs.registry_namespace }}
211203
GH_PR_EVENT_NUMBER: ${{ inputs.pr_event_number }}
212-
BB_BUILDKIT_CACHE_GHA: ${{ inputs.use_cache }}
204+
BB_CACHE_LAYERS: ${{ inputs.use_cache }}
213205
RECIPE_PATH: ${{ steps.build_vars.outputs.recipe_path }}
214206
RUST_LOG_STYLE: always
215207
CLICOLOR_FORCE: "1"

0 commit comments

Comments
 (0)