File tree 1 file changed +10
-2
lines changed
1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -283,21 +283,29 @@ jobs:
283
283
284
284
- name : " push|schedule|workflow_dispatch: make ${{ inputs.target }}"
285
285
run : |
286
+ set -Eeuxo pipefail
287
+ # cache the build only if we are not using subscription
288
+ if [[ ${{ inputs.subscription }} == "false" ]]; then
289
+ export CONTAINER_BUILD_CACHE_ARGS="--cache-from ${{ env.CACHE }} --cache-to ${{ env.CACHE }}"
290
+ fi
286
291
make ${{ inputs.target }}
287
292
if : ${{ fromJson(inputs.github).event_name == 'push' ||
288
293
fromJson(inputs.github).event_name == 'schedule' ||
289
294
fromJson(inputs.github).event_name == 'workflow_dispatch' }}
290
295
env :
291
296
IMAGE_TAG : " ${{ steps.calculated_vars.outputs.IMAGE_TAG }}"
292
- CONTAINER_BUILD_CACHE_ARGS : " --cache-from ${{ env.CACHE }} --cache-to ${{ env.CACHE }}"
293
297
- name : " pull_request: make ${{ inputs.target }}"
294
298
run : |
299
+ set -Eeuxo pipefail
300
+ # cache the build only if we are not using subscription
301
+ if [[ ${{ inputs.subscription }} == "false" ]]; then
302
+ export CONTAINER_BUILD_CACHE_ARGS="--cache-from ${{ env.CACHE }}"
303
+ fi
295
304
make ${{ inputs.target }}
296
305
if : " ${{ fromJson(inputs.github).event_name == 'pull_request' ||
297
306
fromJson(inputs.github).event_name == 'pull_request_target' }}"
298
307
env :
299
308
IMAGE_TAG : " ${{ steps.calculated_vars.outputs.IMAGE_TAG }}"
300
- CONTAINER_BUILD_CACHE_ARGS : " --cache-from ${{ env.CACHE }}"
301
309
# We don't have access to image registry, so disable pushing
302
310
PUSH_IMAGES : " no"
303
311
You can’t perform that action at this time.
0 commit comments