]> granicus.if.org Git - graphviz/commitdiff
Allow testing docker_push step in my own repo
authorMark Hansen <markhansen@google.com>
Sat, 20 Feb 2021 06:05:37 +0000 (17:05 +1100)
committerMark Hansen <markhansen@google.com>
Sat, 20 Feb 2021 06:07:27 +0000 (17:07 +1100)
With my own container registry

Before, I mistakenly thought that merge requests ran with the
credentials of graphviz/graphviz, now I see they only run with the
credentials of the source repo (markhnsn/graphviz). So it's safe to run
this on any master branch, even forks.

.gitlab-ci.yml

index 9c5dc8509503ba2771828fdcbbf60519daa71f07..0736208ec85d519ef5e5710b13b4c0735558f390 100644 (file)
@@ -629,7 +629,9 @@ deployment:
   only:
     refs:
       # Only master should be pushed to :latest, not unmerged merge-requests.
-      - master@graphviz/graphviz
+      # It's ok for this to run on other repos (not just graphviz/graphviz) as
+      # they have their own container registries.
+      - master
   script:
     - docker pull $CI_REGISTRY_IMAGE/$IMAGE:$CI_COMMIT_SHA
     # Re-tag, push to :latest tag