@ -102,17 +102,17 @@ variables:
|
||||
$CI_COMMIT_BRANCH == "master" &&
|
||||
$CI_PIPELINE_SOURCE == "push"
|
||||
exists:
|
||||
- '{dockerfile, dockerfile.j2}'
|
||||
- '{dockerfile,dockerfile.j2}'
|
||||
when: always
|
||||
|
||||
- if: # condition_dev_branch_push
|
||||
$CI_COMMIT_BRANCH == "development" &&
|
||||
$CI_PIPELINE_SOURCE == "push"
|
||||
exists:
|
||||
- '{dockerfile, dockerfile.j2}'
|
||||
- '{dockerfile,dockerfile.j2}'
|
||||
changes:
|
||||
paths:
|
||||
- '{dockerfile, dockerfile.j2, includes/**}'
|
||||
- '{dockerfile,dockerfile.j2,includes/**}'
|
||||
compare_to: 'master'
|
||||
when: always
|
||||
|
||||
@ -121,10 +121,10 @@ variables:
|
||||
$CI_COMMIT_BRANCH != "development" &&
|
||||
$CI_PIPELINE_SOURCE == "push"
|
||||
exists:
|
||||
- '{dockerfile, dockerfile.j2}'
|
||||
- '{dockerfile,dockerfile.j2}'
|
||||
changes:
|
||||
paths:
|
||||
- '{dockerfile, dockerfile.j2, includes/**}'
|
||||
- '{dockerfile,dockerfile.j2,includes/**}'
|
||||
compare_to: 'development'
|
||||
when: always
|
||||
|
||||
|
@ -99,24 +99,24 @@
|
||||
$CI_COMMIT_TAG != null &&
|
||||
$CI_COMMIT_BRANCH == null
|
||||
exists:
|
||||
- '{dockerfile, dockerfile.j2}'
|
||||
- '{dockerfile,dockerfile.j2}'
|
||||
when: on_success
|
||||
|
||||
- if: # condition_master_branch_push
|
||||
$CI_COMMIT_BRANCH == "master" &&
|
||||
$CI_PIPELINE_SOURCE == "push"
|
||||
exists:
|
||||
- '{dockerfile, dockerfile.j2}'
|
||||
- '{dockerfile,dockerfile.j2}'
|
||||
when: on_success
|
||||
|
||||
- if: # condition_dev_branch_push
|
||||
$CI_COMMIT_BRANCH == "development" &&
|
||||
$CI_PIPELINE_SOURCE == "push"
|
||||
exists:
|
||||
- '{dockerfile, dockerfile.j2}'
|
||||
- '{dockerfile,dockerfile.j2}'
|
||||
changes:
|
||||
paths:
|
||||
- '{dockerfile, dockerfile.j2, includes/**}'
|
||||
- '{dockerfile,dockerfile.j2,includes/**}'
|
||||
compare_to: 'master'
|
||||
allow_failure: true
|
||||
when: on_success
|
||||
|
@ -41,17 +41,17 @@
|
||||
$CI_COMMIT_BRANCH == "master" &&
|
||||
$CI_PIPELINE_SOURCE == "push"
|
||||
exists:
|
||||
- '{defaults, handlers, inventory, meta, playbooks. tasks, defaults/**, handlers/**, inventory/**, meta/**, playbooks/**. tasks/**}/*.{yaml,yml}'
|
||||
- "{defaults/**,handlers/**,inventory/**,meta/**,playbooks/**,tasks/**}/*.{yaml,yml}"
|
||||
when: always
|
||||
|
||||
- if: # condition_dev_branch_push
|
||||
$CI_COMMIT_BRANCH == "development" &&
|
||||
$CI_PIPELINE_SOURCE == "push"
|
||||
exists:
|
||||
- '{defaults, handlers, inventory, meta, playbooks. tasks, defaults/**, handlers/**, inventory/**, meta/**, playbooks/**. tasks/**}/*.{yaml,yml}'
|
||||
- "{defaults/**,handlers/**,inventory/**,meta/**,playbooks/**,tasks/**}/*.{yaml,yml}"
|
||||
changes:
|
||||
paths:
|
||||
- '{defaults, handlers, inventory, meta, playbooks. tasks, defaults/**, handlers/**, inventory/**, meta/**, playbooks/**. tasks/**}/*.{yaml,yml}'
|
||||
- "{defaults/**,handlers/**,inventory/**,meta/**,playbooks/**,tasks/**}/*.{yaml,yml}"
|
||||
compare_to: 'master'
|
||||
when: always
|
||||
|
||||
@ -60,10 +60,10 @@
|
||||
$CI_COMMIT_BRANCH != "development" &&
|
||||
$CI_PIPELINE_SOURCE == "push"
|
||||
exists:
|
||||
- '{defaults, handlers, inventory, meta, playbooks. tasks, defaults/**, handlers/**, inventory/**, meta/**, playbooks/**. tasks/**}/*.{yaml,yml}'
|
||||
- "{defaults/**,handlers/**,inventory/**,meta/**,playbooks/**,tasks/**}/*.{yaml,yml}"
|
||||
changes:
|
||||
paths:
|
||||
- '{defaults, handlers, inventory, meta, playbooks. tasks, defaults/**, handlers/**, inventory/**, meta/**, playbooks/**. tasks/**}/*.{yaml,yml}'
|
||||
- "{defaults/**,handlers/**,inventory/**,meta/**,playbooks/**,tasks/**}/*.{yaml,yml}"
|
||||
compare_to: 'development'
|
||||
when: always
|
||||
|
||||
|
@ -39,7 +39,7 @@
|
||||
exists:
|
||||
# - "**.md"
|
||||
# - "**/**.md"
|
||||
- '{!docs/**,!pages/**,!gitlab-ci/**, !website-template/**, **}/*.md'
|
||||
- '{!docs/**,!pages/**,!gitlab-ci/**,!website-template/**,**}/*.md'
|
||||
when: always
|
||||
- when: never
|
||||
|
||||
|
@ -44,12 +44,12 @@
|
||||
- if: '$CI_COMMIT_BRANCH &&
|
||||
( $CI_PIPELINE_SOURCE == "push" || $CI_PIPELINE_SOURCE == "pipeline")'
|
||||
exists:
|
||||
- '{!gitlab-ci/**/*, !website-template/**/*, !.gitlab-ci, !*gitlab-ci*, **/*, **}.{yml, yaml}'
|
||||
- '{!gitlab-ci/**/*,!website-template/**/*,!.gitlab-ci,!*gitlab-ci*,**/*,**}.{yml,yaml}'
|
||||
# - ".gitlab-ci*"
|
||||
# - "**/*gitlab-ci*"
|
||||
changes:
|
||||
paths:
|
||||
- '{!gitlab-ci/**/*, !website-template/**/*, !.gitlab-ci, !*gitlab-ci*, **/*, **}.{yml, yaml}'
|
||||
- '{!gitlab-ci/**/*,!website-template/**/*,!.gitlab-ci,!*gitlab-ci*,**/*,**}.{yml,yaml}'
|
||||
compare_to: 'master'
|
||||
when: always
|
||||
|
||||
@ -59,7 +59,7 @@
|
||||
.Gitlab_CI.Lint.YAML:
|
||||
variables:
|
||||
YAML_LINT_PATH: ".gitlab-ci* ./**/*gitlab-ci*"
|
||||
YAML_LINT_EXTRA_ARGS: "{ extends: lint/.yamllint.yaml, ignore: [gitlab-ci/*, website-template/*] }"
|
||||
YAML_LINT_EXTRA_ARGS: "{ extends: lint/.yamllint.yaml,ignore: [gitlab-ci/*,website-template/*] }"
|
||||
extends:
|
||||
- .yaml_lint_defaults
|
||||
rules:
|
||||
@ -68,17 +68,17 @@
|
||||
$CI_COMMIT_BRANCH == "master" &&
|
||||
$CI_PIPELINE_SOURCE == "push"
|
||||
exists:
|
||||
- '{*, **/**, **}/*gitlab-ci*'
|
||||
- '{*,**/**,**}/*gitlab-ci*'
|
||||
when: always
|
||||
|
||||
- if: # condition_dev_branch_push
|
||||
$CI_COMMIT_BRANCH == "development" &&
|
||||
$CI_PIPELINE_SOURCE == "push"
|
||||
exists:
|
||||
- '{*, **/**, **}/*gitlab-ci*'
|
||||
- '{*,**/**,**}/*gitlab-ci*'
|
||||
changes:
|
||||
paths:
|
||||
- '{*, **/**, **}/*gitlab-ci*'
|
||||
- '{*,**/**,**}/*gitlab-ci*'
|
||||
compare_to: 'master'
|
||||
when: always
|
||||
|
||||
@ -87,10 +87,10 @@
|
||||
$CI_COMMIT_BRANCH != "development" &&
|
||||
$CI_PIPELINE_SOURCE == "push"
|
||||
exists:
|
||||
- '{*, **/**, **}/*gitlab-ci*'
|
||||
- '{*,**/**,**}/*gitlab-ci*'
|
||||
changes:
|
||||
paths:
|
||||
- '{*, **/**, **}/*gitlab-ci*'
|
||||
- '{*,**/**,**}/*gitlab-ci*'
|
||||
compare_to: 'development'
|
||||
when: always
|
||||
|
||||
|
@ -41,17 +41,17 @@ Docker.Hub.Branch.Publish:
|
||||
$CI_COMMIT_BRANCH == "master" &&
|
||||
$CI_PIPELINE_SOURCE == "push"
|
||||
exists:
|
||||
- '{dockerfile, dockerfile.j2}'
|
||||
- '{dockerfile,dockerfile.j2}'
|
||||
when: always
|
||||
|
||||
- if: # condition_dev_branch_push
|
||||
$CI_COMMIT_BRANCH == "development" &&
|
||||
$CI_PIPELINE_SOURCE == "push"
|
||||
exists:
|
||||
- '{dockerfile, dockerfile.j2}'
|
||||
- '{dockerfile,dockerfile.j2}'
|
||||
changes:
|
||||
paths:
|
||||
- '{dockerfile, dockerfile.j2, includes**/**}'
|
||||
- '{dockerfile,dockerfile.j2,includes**/**}'
|
||||
compare_to: 'master'
|
||||
allow_failure: true
|
||||
when: manual
|
||||
@ -68,7 +68,7 @@ Docker.Hub.Tag.Publish:
|
||||
$CI_COMMIT_TAG != null &&
|
||||
$CI_COMMIT_BRANCH == null
|
||||
exists:
|
||||
- '{dockerfile, dockerfile.j2}'
|
||||
- '{dockerfile,dockerfile.j2}'
|
||||
when: always
|
||||
|
||||
- when: never
|
||||
|
Reference in New Issue
Block a user