From aff519537fc1d1baf35b6aff551238983684054a Mon Sep 17 00:00:00 2001 From: William Nolin Date: Fri, 12 Feb 2021 23:59:03 -0500 Subject: [PATCH] Update .gitlab-ci.yml --- .gitlab-ci.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b727030..e9143ad 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -11,6 +11,10 @@ stages: - test - package - deploy + +.only-master: + only: + - master build: stage: build @@ -30,9 +34,7 @@ test: package: stage: package needs: [ 'test' ] - only: - refs: - - master + extends: .only-master variables: PACKAGE_CONTAINER_NAME: "cre_backend_package-$CI_COMMIT_REF_NAME" ARTIFACT_NAME: "ColorRecipesExplorer-backend-$CI_PIPELINE_IID" @@ -54,9 +56,7 @@ deploy: stage: deploy image: alpine:latest needs: [ 'package' ] - only: - refs: - - master + extends: .only-master variables: DEPLOYED_CONTAINER_NAME: "cre_backend-$CI_COMMIT_REF_NAME" before_script: