build: ci only build release branches, master, tags

This commit is contained in:
Andreas Stallinger
2017-08-23 11:12:40 +00:00
parent 4037593a05
commit 78d1d72f54
+8 -7
View File
@@ -1,4 +1,3 @@
variables: variables:
MAVEN_OPTS: "-Dmaven.repo.local=.m2/repository" MAVEN_OPTS: "-Dmaven.repo.local=.m2/repository"
IMAGE_64: coatisoftware/centos6_64_qt_llvm:qt591-llvm401 IMAGE_64: coatisoftware/centos6_64_qt_llvm:qt591-llvm401
@@ -41,6 +40,10 @@ variables:
build:Linux64: build:Linux64:
image: $IMAGE_64 image: $IMAGE_64
only:
- /^release-.*$/
- master
- tags
cache: cache:
key: cache_linux_64 key: cache_linux_64
paths: paths:
@@ -50,6 +53,10 @@ build:Linux64:
build:Linux32: build:Linux32:
image: $IMAGE_32 image: $IMAGE_32
only:
- /^release-.*$/
- master
- tags
cache: cache:
key: cache_linux_32 key: cache_linux_32
paths: paths:
@@ -58,12 +65,6 @@ build:Linux32:
when: manual when: manual
<<: *build_def <<: *build_def
build:Linux32_tag:
image: $IMAGE_32
only:
- tags
<<: *build_def
LicenseGenerator: LicenseGenerator:
image: $IMAGE_64 image: $IMAGE_64
stage: build stage: build