File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 85
85
OS_DISTRO: ${{ inputs.distro }}
86
86
PUSH_GCR_IMAGE: ${{ inputs.gcr_push }}
87
87
GCR_IMAGE_NAME: ${{ inputs.gcr_name }}
88
+ LOAD_IMAGE: ${{ github.event_name == 'pull_request' && 'true' || 'false' }}
88
89
- name : Set up Go
89
90
uses : actions/setup-go@v4
90
91
if : ${{ inputs.test_toolchain }}
Original file line number Diff line number Diff line change @@ -69,5 +69,7 @@ if [[ -n "${IMAGE_TAGS}" ]]; then
69
69
done
70
70
fi
71
71
72
- # Testing after push to save CI time because this invalidates arm64 cache
73
- ci_log_run docker buildx build . -f " ${OS_DISTRO} /Dockerfile" -t " ${IMAGE_NAME} :${CONTAINER_TAG} " --platform " linux/amd64" --load
72
+ if [[ " $LOAD_IMAGE " == " true" ]]; then
73
+ # Testing after push to save CI time because this invalidates arm64 cache
74
+ ci_log_run docker buildx build . -f " ${OS_DISTRO} /Dockerfile" -t " ${IMAGE_NAME} :${CONTAINER_TAG} " --platform " linux/amd64" --load
75
+ fi
You can’t perform that action at this time.
0 commit comments