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

misc

parent fdd797a3
Branches
No related tags found
No related merge requests found
...@@ -7,7 +7,7 @@ build ubuntu: ...@@ -7,7 +7,7 @@ build ubuntu:
tags: [linux, shell] tags: [linux, shell]
script: script:
- GPU_DRIVER_VERSION="$(dpkg-query --showformat='${Version}' --show 'nvidia-driver-*')" - 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 - if [[ -f $CACHE_FILE ]] && [[ "$(cat $CACHE_FILE)" == "$GPU_DRIVER_VERSION" ]]; then OPTS=''; else OPTS='--no-cache'; fi
- echo -n $GPU_DRIVER_VERSION > $CACHE_FILE - echo -n $GPU_DRIVER_VERSION > $CACHE_FILE
- image_name="${CI_REGISTRY}/${CI_PROJECT_PATH,,}/ubuntu" - 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