Skip to content

Commit

Permalink
.github: workflows: Set TMPDIR to under work volume
Browse files Browse the repository at this point in the history
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 <root@stephanos.io>
  • Loading branch information
stephanosio committed May 31, 2024
1 parent 5e59a4d commit e94ae9c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit e94ae9c

Please sign in to comment.