]> granicus.if.org Git - graphviz/commitdiff
Don't checkout the source code for docker push
authorMark Hansen <markhansen@google.com>
Sat, 20 Feb 2021 07:07:12 +0000 (18:07 +1100)
committerMark Hansen <markhansen@google.com>
Sat, 20 Feb 2021 07:07:37 +0000 (18:07 +1100)
It's not used and not needed.

This might speed up the CI a little.

Based off
https://blog.callr.tech/building-docker-images-with-gitlab-ci-best-practices/

.gitlab-ci.yml

index acb304efe081c26fe086887467995bb4ede272c9..23588978004686ba0ab5d8d8aa3f439b40f143f5 100644 (file)
@@ -631,6 +631,10 @@ deployment:
 .docker_push_template: &docker_push_definition
   <<: *docker_definition
   stage: push_docker_images
+  variables:
+    # Docker pull and push doesn't need GitLab to clone the source code.
+    # Skipping code checkout should speed up execution a little.
+    GIT_STRATEGY: none
   only:
     refs:
       # Only master should be pushed to :latest, not unmerged merge-requests.