Skip to content

Commit a6be94e

Browse files
committed
Switch buildx driver on PRs so locally built image is used
1 parent 11bab22 commit a6be94e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/container_images.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,8 @@ jobs:
143143
name: Build ${{ matrix.variance.name }} (${{ matrix.platform.arch }})
144144
needs: build-toolchain
145145
runs-on: ${{ matrix.platform.runner }}
146+
env:
147+
BUILDX_DRIVER: ${{ github.event_name == 'pull_request' && 'docker' || 'docker-container' }}
146148
permissions:
147149
contents: read
148150
packages: write
@@ -227,6 +229,8 @@ jobs:
227229
df -h
228230
- name: Set up Docker Buildx
229231
uses: docker/setup-buildx-action@v3
232+
with:
233+
driver: ${{ env.BUILDX_DRIVER }}
230234
- name: Prepare BuildKit temp space
231235
run: |
232236
mkdir -p "${{ runner.temp }}/buildkit-tmp"

0 commit comments

Comments
 (0)