Compare commits
10 Commits
d2abbda668
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| 1603c6bc31 | |||
| 53b6d458f6 | |||
| b4ac67cda0 | |||
| ef9fb54c5a | |||
| 225930a739 | |||
| 1a8772f684 | |||
| 5f61188367 | |||
| b2e99ae7e4 | |||
| 1b76f03ba3 | |||
| b218b4ef4e |
+24
-3
@@ -1,10 +1,31 @@
|
|||||||
repos:
|
repos:
|
||||||
- repo: 'https://github.com/adrienverge/yamllint'
|
# General file checks
|
||||||
rev: v1.32.0
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||||
|
rev: v4.5.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: 'yamllint'
|
- id: check-added-large-files
|
||||||
|
args: ['--maxkb=500']
|
||||||
|
- id: check-merge-conflict
|
||||||
|
- id: check-symlinks
|
||||||
|
- id: check-yaml
|
||||||
|
args: [--allow-multiple-documents]
|
||||||
|
- id: end-of-file-fixer
|
||||||
|
- id: forbid-new-submodules
|
||||||
|
- id: trailing-whitespace
|
||||||
|
|
||||||
|
# YAML linting
|
||||||
|
- repo: https://github.com/adrienverge/yamllint.git
|
||||||
|
rev: v1.37.1
|
||||||
|
hooks:
|
||||||
|
- id: yamllint
|
||||||
args:
|
args:
|
||||||
[
|
[
|
||||||
"-d {extends: relaxed, rules: {line-length: disable}, ignore: chart}",
|
"-d {extends: relaxed, rules: {line-length: disable}, ignore: chart}",
|
||||||
"-s",
|
"-s",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
- repo: https://github.com/jorisroovers/gitlint
|
||||||
|
rev: v0.19.1
|
||||||
|
hooks:
|
||||||
|
- id: gitlint
|
||||||
|
stages: [commit-msg]
|
||||||
|
|||||||
@@ -0,0 +1,13 @@
|
|||||||
|
when:
|
||||||
|
- event: pull_request
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: g10k-validate
|
||||||
|
image: git.unkin.net/unkin/almalinux9-g10k:20260308
|
||||||
|
commands:
|
||||||
|
- g10k -config r10k.yaml -validate
|
||||||
|
|
||||||
|
- name: g10k-run
|
||||||
|
image: git.unkin.net/unkin/almalinux9-g10k:20260308
|
||||||
|
commands:
|
||||||
|
- g10k -config r10k.yaml -verbose
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
when:
|
||||||
|
- event: pull_request
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: pre-commit
|
||||||
|
image: git.unkin.net/unkin/almalinux9-base:20260308
|
||||||
|
commands:
|
||||||
|
- uvx pre-commit run --all-files
|
||||||
@@ -1,10 +1,10 @@
|
|||||||
# The location to use for storing cached Git repos
|
# The location to use for storing cached Git repos
|
||||||
:cachedir: '/opt/puppetlabs/cache/r10k'
|
:cachedir: '/etc/puppetlabs/code/.g10k/cachedir'
|
||||||
|
|
||||||
# A list of git repositories to create
|
# A list of git repositories to create
|
||||||
:sources:
|
:sources:
|
||||||
# This will clone the git repository and instantiate an environment per
|
# This will clone the git repository and instantiate an environment per
|
||||||
# branch in /etc/puppetlabs/code/environments
|
# branch in /etc/puppetlabs/code/environments
|
||||||
:unkin:
|
:unkin:
|
||||||
remote: 'https://git.service.au-syd1.consul/unkinben/puppet-prod.git'
|
remote: 'https://git.unkin.net/unkin/puppet-prod.git'
|
||||||
basedir: '/etc/puppetlabs/code/environments'
|
basedir: '/etc/puppetlabs/code/environments'
|
||||||
|
|||||||
Reference in New Issue
Block a user