Skip to content
Snippets Groups Projects
Commit c5f4a296 authored by Moritz Maxeiner's avatar Moritz Maxeiner
Browse files

Test

parent be567631
No related branches found
No related tags found
No related merge requests found
......@@ -9,6 +9,7 @@ build-ubuntu-18.04:
script:
- GPU_DRIVER_VERSION="$(dpkg-query --showformat='${Version}' --show 'nvidia-driver-*')"
- if [[ -f $XDG_RUNTIME_DIR/rf_docker-gpu-driver-version ]] && [[ "$(cat $XDG_RUNTIME_DIR/rf_docker-gpu-driver-version)" == "$GPU_DRIVER_VERSION" ]]; then OPTS=''; else OPTS='--no-cache'; fi
- echo Options: $OPTS
- echo -n $GPU_DRIVER_VERSION > $XDG_RUNTIME_DIR/rf_docker-gpu-driver-version
- docker build $OPTS --pull -t "${CI_REGISTRY}/${CI_PROJECT_PATH,,}:ubuntu-18.04" ubuntu-18.04
- docker push "${CI_REGISTRY}/${CI_PROJECT_PATH,,}:ubuntu-18.04"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment