Skip to content

Commit e94ae9c

Browse files
committed
.github: workflows: Set TMPDIR to under work volume
This commit updates the CI workflow to set the TMPDIR environment variable to `/__w/tmp`, which is under the runner work volume in order to ensure that sufficient free space is available for the temporary image layers to be stored. Note that the TMPDIR environment variable is used by Podman/Buildah to set `image_copy_tmp_dir`. Signed-off-by: Stephanos Ioannidis <[email protected]>
1 parent 5e59a4d commit e94ae9c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,11 @@ jobs:
4646
builder: zephyr-runner-v2-linux-arm64-4xlarge
4747

4848
steps:
49+
- name: Configure temporary directory
50+
run: |
51+
mkdir -p /__w/tmp
52+
echo "TMPDIR=/__w/tmp" >> $GITHUB_ENV
53+
4954
- name: Configure container storage
5055
run: |
5156
sed -i 's/graphroot = .*/graphroot = "\/__w\/container_storage"/' /etc/containers/storage.conf
@@ -175,6 +180,11 @@ jobs:
175180
if: ${{ github.event_name != 'pull_request' }}
176181

177182
steps:
183+
- name: Configure temporary directory
184+
run: |
185+
mkdir -p /__w/tmp
186+
echo "TMPDIR=/__w/tmp" >> $GITHUB_ENV
187+
178188
- name: Configure container storage
179189
run: |
180190
sed -i 's/graphroot = .*/graphroot = "\/__w\/container_storage"/' /etc/containers/storage.conf

0 commit comments

Comments
 (0)