From e94ae9cdff5b764236ddd6ce317b4bc5f0e61885 Mon Sep 17 00:00:00 2001 From: Stephanos Ioannidis Date: Fri, 31 May 2024 21:33:03 +0900 Subject: [PATCH] .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 --- .github/workflows/ci.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6b73c1f..259955c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -46,6 +46,11 @@ jobs: builder: zephyr-runner-v2-linux-arm64-4xlarge steps: + - name: Configure temporary directory + run: | + mkdir -p /__w/tmp + echo "TMPDIR=/__w/tmp" >> $GITHUB_ENV + - name: Configure container storage run: | sed -i 's/graphroot = .*/graphroot = "\/__w\/container_storage"/' /etc/containers/storage.conf @@ -175,6 +180,11 @@ jobs: if: ${{ github.event_name != 'pull_request' }} steps: + - name: Configure temporary directory + run: | + mkdir -p /__w/tmp + echo "TMPDIR=/__w/tmp" >> $GITHUB_ENV + - name: Configure container storage run: | sed -i 's/graphroot = .*/graphroot = "\/__w\/container_storage"/' /etc/containers/storage.conf