From faafbbeb62b787d1552b6a30a9246f9ccdf412f7 Mon Sep 17 00:00:00 2001 From: Niggl Date: Tue, 23 Jun 2020 17:48:09 +0200 Subject: [PATCH] Added filter so that builds only get executed on master and tags --- .gitlab-ci.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a141076..80a47e8 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -22,4 +22,8 @@ build: - docker tag backend:$CI_COMMIT_SHORT_SHA $CI_REGISTRY/taskboard/backend:latest - docker push $CI_REGISTRY/taskboard/backend:latest tags: - - backend \ No newline at end of file + - backend + only: + refs: + - tags + - master \ No newline at end of file