Commit 238e87f7 authored by Дмитрий Сафронов's avatar Дмитрий Сафронов
Browse files

Update gitlab-ci.yml

parent 7b4b4515
Loading
Loading
Loading
Loading
+11 −17
Original line number Diff line number Diff line
# VARIABLES
variables:
  DOCKER_BUILDKIT: 1
  DOCKER_DRIVER: overlay2
  DOCKER_HOST: tcp://localhost:2375
  DOCKER_TLS_CERTDIR: ""

##########################################################################################################

## PIPELINE DEFINITION
stages:
  - check
@@ -14,9 +5,8 @@ stages:
##########################################################################################################

### COMMON SECTION
.common: &common
  services:
    - $DIND_IMAGE
.common:
  image: $ANSIBLE_IMAGE
  variables:
    GIT_DEPTH: 1
    ANSIBLE_FORCE_COLOR: "True"
@@ -25,12 +15,16 @@ stages:

##########################################################################################################

### TEST SECTION
### CHECK SECTION
ansible-lint:
  <<: *common
  extends: .common
  stage: check
  image: $ANSIBLE_IMAGE
  except:
    - /^master$/
  interruptible: true
  rules:
    - if: '$CUSTOM_SKIP_CHECK'
      when: never
    - if: '$CI_PIPELINE_SOURCE == "schedule" && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
    - if: '$CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == $CI_DEFAULT_BRANCH'
    - when: never
  script:
    - ansible-lint -x '204' .