Skip to content

Commit ae744b9

Browse files
committed
RHOAIENG-21668: chore(gha): disable caching for subscribed builds
1 parent 4491157 commit ae744b9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/build-notebooks-TEMPLATE.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,11 @@ jobs:
290290
CONTAINER_BUILD_CACHE_ARGS: "--cache-from ${{ env.CACHE }} --cache-to ${{ env.CACHE }}"
291291
- name: "pull_request: make ${{ inputs.target }}"
292292
run: |
293+
set -Eeuxo pipefail
294+
# cache the build only if we are not using subscription
295+
if [[ ${{ inputs.subscription }} == "false" ]]; then
296+
export CONTAINER_BUILD_CACHE_ARGS="--cache-from ${{ env.CACHE }} --cache-to ${{ env.CACHE }}"
297+
fi
293298
make ${{ inputs.target }}
294299
if: "${{ fromJson(inputs.github).event_name == 'pull_request' ||
295300
fromJson(inputs.github).event_name == 'pull_request_target' }}"

0 commit comments

Comments
 (0)