From 2bb465d8679957251c68bef673e7fa06e4f3f82e Mon Sep 17 00:00:00 2001 From: ErickSkrauch Date: Fri, 21 Jan 2022 21:11:45 +0100 Subject: [PATCH] Fix build pipeline [deploy dev] --- .gitlab-ci.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3b3b99d..47346ff 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -171,9 +171,15 @@ Docker: - docker push $WEB_LATEST_IMAGE_NAME - docker push $DB_VERSIONED_IMAGE_NAME - docker push $DB_LATEST_IMAGE_NAME - only: - - master - - tags + rules: + - if: '$CI_COMMIT_TAG' + when: on_success + - if: '$CI_COMMIT_BRANCH == "master"' + when: on_success + - if: '$CI_COMMIT_MESSAGE =~ /\[deploy.*\]/' + when: on_success + # Default: + - when: never ########## # Deploy #