From 2d65189d96e5b365758fcdf30e694021597c274f Mon Sep 17 00:00:00 2001 From: Patrick Jentsch Date: Tue, 4 Jun 2019 11:59:55 +0200 Subject: [PATCH] Build only master and tags --- .gitlab-ci.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b3aba3d..f1f9e02 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -17,7 +17,7 @@ Build: tags: - docker -Push master: +Push latest: image: docker:latest only: - master @@ -31,10 +31,10 @@ Push master: tags: - docker -Push others: - except: - - master +Push tag: image: docker:latest + only: + - tags script: - docker pull $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA - docker tag $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME