diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e708ddf..0cc878c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -38,6 +38,8 @@ stages: .check_versions_template: &check_vers <<: *tags_template stage: check_and_lint + only: + - master script: - /usr/bin/hostname - "cd ${CI_PROJECT_DIR} && git log -1" @@ -48,6 +50,8 @@ stages: .lint_play_template: &lint_play <<: *tags_template stage: check_and_lint + only: + - master script: - chmod 755 ${ANSIBLE_PLAY_PATH} - ansible-lint -v ${ANSIBLE_PLAY_PATH}/*.yml @@ -56,6 +60,8 @@ stages: .test_deploy_template: &test_deploy <<: *tags_template stage: test_deploy + only: + - master script: - chmod 755 ${ANSIBLE_PLAY_PATH} - pwd