diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 22b5bb5..7aca0cf 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -16,7 +16,7 @@ build:master: --dockerfile "${CI_PROJECT_DIR}/Dockerfile" --destination "${CI_REGISTRY_IMAGE}:latest" rules: - - if: '$CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "master"' + - if: '${CI_COMMIT_BRANCH} == "master"' build:branch: @@ -31,4 +31,4 @@ build:branch: --destination "${CI_REGISTRY_IMAGE}:${CI_COMMIT_SHORT_SHA}" --destination "${CI_REGISTRY_IMAGE}:${CI_COMMIT_BRANCH}" rules: - - if: '$CI_MERGE_REQUEST_TARGET_BRANCH_NAME != "master"' \ No newline at end of file + - if: '${CI_COMMIT_BRANCH} != "master"' \ No newline at end of file