Skip to content
Snippets Groups Projects
Commit ea1a38e9 authored by calrama's avatar calrama
Browse files

misc

parent fdd797a3
No related branches found
No related tags found
No related merge requests found
......@@ -7,7 +7,7 @@ build ubuntu:
tags: [linux, shell]
script:
- GPU_DRIVER_VERSION="$(dpkg-query --showformat='${Version}' --show 'nvidia-driver-*')"
- CACHE_FILE="/var/lib/gitlab-runner/.local/share/robofish-docker-gpu-driver-version"
- CACHE_FILE="/var/lib/gitlab-runner/.local/share/gpu-driver-version"
- if [[ -f $CACHE_FILE ]] && [[ "$(cat $CACHE_FILE)" == "$GPU_DRIVER_VERSION" ]]; then OPTS=''; else OPTS='--no-cache'; fi
- echo -n $GPU_DRIVER_VERSION > $CACHE_FILE
- image_name="${CI_REGISTRY}/${CI_PROJECT_PATH,,}/ubuntu"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment