mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
b9344ffeb7
- switching more to rules syntax - clean up some templates - EITHER optional builds or build builds - ordering
24 lines
658 B
YAML
24 lines
658 B
YAML
# Template to only run if actual changes has been made to the code and not just documentation
|
|
.recompile-branch:
|
|
tags:
|
|
- veloren-docker
|
|
rules:
|
|
- if: $CI_COMMIT_REF_NAME !~ /^master$/
|
|
# No '-' here is *very* important: https://docs.gitlab.com/ee/ci/yaml/#complex-rule-clauses
|
|
changes:
|
|
- "**/*.{rs,ron,toml,vox,png}"
|
|
- "rust-toolchain"
|
|
- ".gitlab-ci.yml"
|
|
- "**/*.yml"
|
|
|
|
# like .recompile-branch but will run on master too
|
|
.recompile:
|
|
tags:
|
|
- veloren-docker
|
|
rules:
|
|
- changes:
|
|
- "**/*.{rs,ron,toml,vox,png,wav}"
|
|
- "rust-toolchain"
|
|
- ".gitlab-ci.yml"
|
|
- "**/*.yml"
|