From e91f811e94efe23d2d71dc18ac82ff91af7024f7 Mon Sep 17 00:00:00 2001 From: Raoul Snyman Date: Mon, 16 Sep 2019 22:12:32 -0700 Subject: [PATCH] Only run gitlab on main master --- .gitlab-ci.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 98d8051..d286532 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -18,6 +18,8 @@ build-debian: - docker build --cache-from $CONTAINER_IMAGE:debian --tag $CONTAINER_IMAGE:$CI_COMMIT_SHA --tag $CONTAINER_IMAGE:debian -f Dockerfile.debian . - docker push $CONTAINER_IMAGE:$CI_COMMIT_SHA - docker push $CONTAINER_IMAGE:debian + only: + - master@openlp/runners build-ubuntu: stage: build @@ -26,6 +28,8 @@ build-ubuntu: - docker build --cache-from $CONTAINER_IMAGE:ubuntu --tag $CONTAINER_IMAGE:$CI_COMMIT_SHA --tag $CONTAINER_IMAGE:ubuntu -f Dockerfile.ubuntu . - docker push $CONTAINER_IMAGE:$CI_COMMIT_SHA - docker push $CONTAINER_IMAGE:ubuntu + only: + - master@openlp/runners build-fedora: stage: build @@ -34,3 +38,5 @@ build-fedora: - docker build --cache-from $CONTAINER_IMAGE:fedora --tag $CONTAINER_IMAGE:$CI_COMMIT_SHA --tag $CONTAINER_IMAGE:fedora -f Dockerfile.fedora . - docker push $CONTAINER_IMAGE:$CI_COMMIT_SHA - docker push $CONTAINER_IMAGE:fedora + only: + - master@openlp/runners