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
Branches
Tags
No related merge requests found
# VARIABLES
variables:
DOCKER_BUILDKIT: 1
DOCKER_DRIVER: overlay2
DOCKER_HOST: tcp://localhost:2375
DOCKER_TLS_CERTDIR: ""
##########################################################################################################
## PIPELINE DEFINITION ## PIPELINE DEFINITION
stages: stages:
- check - check
...@@ -14,9 +5,8 @@ stages: ...@@ -14,9 +5,8 @@ stages:
########################################################################################################## ##########################################################################################################
### COMMON SECTION ### COMMON SECTION
.common: &common .common:
services: image: $ANSIBLE_IMAGE
- $DIND_IMAGE
variables: variables:
GIT_DEPTH: 1 GIT_DEPTH: 1
ANSIBLE_FORCE_COLOR: "True" ANSIBLE_FORCE_COLOR: "True"
...@@ -25,12 +15,16 @@ stages: ...@@ -25,12 +15,16 @@ stages:
########################################################################################################## ##########################################################################################################
### TEST SECTION ### CHECK SECTION
ansible-lint: ansible-lint:
<<: *common extends: .common
stage: check stage: check
image: $ANSIBLE_IMAGE interruptible: true
except: rules:
- /^master$/ - 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: script:
- ansible-lint -x '204' . - 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