From b47e262e7f3daa28705065600f8e8ca0f6ed28a1 Mon Sep 17 00:00:00 2001 From: skwerlman Date: Wed, 10 May 2017 02:53:11 -0400 Subject: [PATCH] limit gitlab builds to master (#2711) --- .gitlab-ci.yml | 29 +++++++++++++++++------------ 1 file changed, 17 insertions(+), 12 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ef97c099..0ece6fad 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -13,6 +13,15 @@ stages: paths: - cache/ +.branches: &branches + only: + - master + +.tags: &tags + tags: + - linux + - docker + #================================ DEBIAN-BASED ================================ @@ -53,18 +62,16 @@ stages: .build_1604: &1604 image: ubuntu:16.04 - tags: - - linux - - docker + <<: *tags + <<: *branches <<: *install_requirements_16xx <<: *artifacts_deb <<: *cache .build_1610: &1610 image: ubuntu:16.10 - tags: - - linux - - docker + <<: *tags + <<: *branches <<: *install_requirements_16xx <<: *artifacts_deb <<: *cache @@ -103,9 +110,8 @@ build_debug_1610: .build_stretch: &stretch image: debian:stretch - tags: - - linux - - docker + <<: *tags + <<: *branches <<: *install_requirements_stretch <<: *artifacts_deb <<: *cache @@ -157,9 +163,8 @@ build_debug_stretch: .build_fedora22: &fedora22 image: fedora:22 - tags: - - linux - - docker + <<: *tags + <<: *branches <<: *install_requirements_fedora22 <<: *artifacts_rpm <<: *cache