Skip to content

Commit

Permalink
cicd: add /var/tmp mount to make sure it's on a real filesystem
Browse files Browse the repository at this point in the history
Signed-off-by: Hank Donnay <[email protected]>
  • Loading branch information
hdonnay committed Apr 10, 2024
1 parent 139aed2 commit 6884969
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ jobs:
GOARCH: ${{ matrix.platform }}
run: |
# Go Tests
mkdir -p ~/.cache/clair-testing
mkdir -p ~/.cache/clair-testing "${RUNNER_TEMP}/vartmp"
# Hopefully everything we use has their build tags correct.
echo ::group::cross-compiling for "$GOARCH"
Expand Down Expand Up @@ -228,6 +228,8 @@ jobs:
--mount "type=bind,src=${HOME}/.cache/clair-testing,dst=/root/.cache/clair-testing" \
--mount "type=bind,src=$(pwd),dst=/build" \
--mount "type=bind,src=${RUNNER_TEMP}/tests.sh,dst=/root/tests.sh" \
--mount "type=bind,src=${RUNNER_TEMP}/vartmp,dst=/var/tmp" \
--tmpfs /tmp:rw,exec,nosuid,nodev \
--env-file "${RUNNER_TEMP}/env.list" \
--workdir "/build/${{ inputs.cd }}" \
"quay.io/projectquay/golang:${gover%.*}" \
Expand Down

0 comments on commit 6884969

Please sign in to comment.