|
|
@ -25,20 +25,13 @@ build docker image: |
|
|
|
script: |
|
|
|
script: |
|
|
|
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN $CI_REGISTRY |
|
|
|
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN $CI_REGISTRY |
|
|
|
- time docker pull $CI_REGISTRY_IMAGE:latest || true |
|
|
|
- time docker pull $CI_REGISTRY_IMAGE:latest || true |
|
|
|
- echo $MESA_COMMIT |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- if [[ -n "$MESA_COMMIT" ]]; then |
|
|
|
- docker build |
|
|
|
time docker build |
|
|
|
|
|
|
|
--build-arg KNOWN_GOOD_MESA=$MESA_COMMIT |
|
|
|
--build-arg KNOWN_GOOD_MESA=$MESA_COMMIT |
|
|
|
|
|
|
|
--build-arg MESA_REPO=$MESA_REPO |
|
|
|
-t $CI_REGISTRY_IMAGE |
|
|
|
-t $CI_REGISTRY_IMAGE |
|
|
|
--cache-from $CI_REGISTRY_IMAGE:latest ci |
|
|
|
--cache-from $CI_REGISTRY_IMAGE:latest ci |
|
|
|
2>&1 | tee results/docker_build_log.txt; |
|
|
|
2>&1 | tee results/docker_build_log.txt; |
|
|
|
else |
|
|
|
|
|
|
|
time docker build |
|
|
|
|
|
|
|
-t $CI_REGISTRY_IMAGE |
|
|
|
|
|
|
|
--cache-from $CI_REGISTRY_IMAGE:latest ci |
|
|
|
|
|
|
|
2>&1 | tee results/docker_build_log.txt; |
|
|
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- docker history $CI_REGISTRY_IMAGE:latest |
|
|
|
- docker history $CI_REGISTRY_IMAGE:latest |
|
|
|
|
|
|
|
|
|
|
|