From 1736abf6b2cfd8e9f5170d4f1d0b9db3db3b6ea9 Mon Sep 17 00:00:00 2001 From: Alfredos-Panagiotis Damkalis Date: Wed, 20 May 2020 17:59:25 +0300 Subject: [PATCH] gitlab-ci: Change from "only" to "rules" Signed-off-by: Alfredos-Panagiotis Damkalis --- .gitlab-ci.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index fe3c3e2..f0564db 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -24,12 +24,9 @@ container_scanning: variables: CI_APPLICATION_REPOSITORY: ${CI_REGISTRY_IMAGE}/satnogs-db CI_APPLICATION_TAG: ${CI_COMMIT_REF_NAME} - only: - refs: - - master - - tags - variables: - - $CI_REGISTRY_IMAGE + rules: + - if: $CI_REGISTRY_IMAGE && $CI_COMMIT_BRANCH == "master" + - if: $CI_REGISTRY_IMAGE && $CI_COMMIT_TAG dependency_scanning: stage: security variables: