Skip to content

Commit dbbb3fa

Browse files
committed
Use RUNNER_TEMP
This is supposedly bigger than /tmp
1 parent 7919505 commit dbbb3fa

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/container_images.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,12 @@ jobs:
7070
images: ${{ env.REGISTRY }}/${{ matrix.variance.toolchain_image }}
7171
- name: Set up Docker Buildx
7272
uses: docker/setup-buildx-action@v3
73+
- name: Prepare BuildKit temp space
74+
run: |
75+
mkdir -p "${RUNNER_TEMP}/buildkit-tmp"
76+
echo "TMPDIR=${RUNNER_TEMP}/buildkit-tmp" >> "$GITHUB_ENV"
77+
echo "BUILDKIT_TMPDIR=${RUNNER_TEMP}/buildkit-tmp" >> "$GITHUB_ENV"
78+
echo "BUILDKIT_SANDBOX_TMPDIR=${RUNNER_TEMP}/buildkit-tmp" >> "$GITHUB_ENV"
7379
- name: Build and push toolchain
7480
id: toolchain-build
7581
uses: docker/build-push-action@v6
@@ -83,7 +89,7 @@ jobs:
8389
${{ env.REGISTRY }}/${{ matrix.variance.toolchain_image }}:ci-${{ github.run_id }}-${{ matrix.platform.arch }}
8490
outputs: |
8591
type=image,name=${{ env.REGISTRY }}/${{ matrix.variance.toolchain_image }},push-by-digest=true,name-canonical=true,push=${{ github.event_name != 'pull_request' }}
86-
type=docker,dest=/tmp/${{ matrix.variance.toolchain_artifact }}-${{ matrix.platform.arch }}.tar
92+
type=docker,dest=${{ runner.temp }}/${{ matrix.variance.toolchain_artifact }}-${{ matrix.platform.arch }}.tar
8793
cache-from: type=gha
8894
- name: Export digest
8995
if: github.event_name != 'pull_request'
@@ -103,7 +109,7 @@ jobs:
103109
uses: actions/upload-artifact@v4
104110
with:
105111
name: ${{ matrix.variance.toolchain_artifact }}-${{ matrix.platform.arch }}
106-
path: /tmp/${{ matrix.variance.toolchain_artifact }}-${{ matrix.platform.arch }}.tar
112+
path: ${{ runner.temp }}/${{ matrix.variance.toolchain_artifact }}-${{ matrix.platform.arch }}.tar
107113
if-no-files-found: error
108114
retention-days: 1
109115
- name: Clean up caches

0 commit comments

Comments
 (0)