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 72b925b commit e4f412e
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 @@ -188,7 +188,7 @@ jobs:
gover: ${{ steps.setup-go.outputs.go-version }}
run: |
# Go Tests
mkdir -p ~/.cache/clair-testing
mkdir -p ~/.cache/clair-testing "${RUNNER_TEMP}/vartmp"
# Still haven't figured out the caching 100%, so make sure the stdlib is built, at least.
export GOARCH='${{ matrix.platform }}'
for mod in '' github.com/quay/clair/config github.com/quay/claircore github.com/quay/claircore/toolkit; do
Expand Down Expand Up @@ -230,6 +230,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" \
--mount "type=tmpfs,dst=/tmp" \
--env-file "${RUNNER_TEMP}/env.list" \
--work-dir "/build/${{ inputs.cd }}" \
"quay.io/projectquay/golang:${gover%.*}" \
Expand Down

0 comments on commit e4f412e

Please sign in to comment.