Skip to content
Snippets Groups Projects
Commit f2e1ac80 authored by Dmitriy Safronov's avatar Dmitriy Safronov
Browse files

Merge branch 'zimniy-master-patch-15414' into 'master'

Update gitlab-ci.yml

See merge request tools/continuous-integration/ansible/roles!7
parents 7b4b4515 238e87f7
No related branches found
No related tags found
No related merge requests found
# 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' .
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment