Compare commits
11 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| b41d223b27 | |||
| 1603c6bc31 | |||
| 53b6d458f6 | |||
| b4ac67cda0 | |||
| ef9fb54c5a | |||
| 225930a739 | |||
| 1a8772f684 | |||
| 5f61188367 | |||
| b2e99ae7e4 | |||
| 1b76f03ba3 | |||
| b218b4ef4e |
+24
-3
@@ -1,10 +1,31 @@
|
||||
repos:
|
||||
- repo: 'https://github.com/adrienverge/yamllint'
|
||||
rev: v1.32.0
|
||||
# General file checks
|
||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||
rev: v4.5.0
|
||||
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:
|
||||
[
|
||||
"-d {extends: relaxed, rules: {line-length: disable}, ignore: chart}",
|
||||
"-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:20260606
|
||||
commands:
|
||||
- g10k -config r10k.yaml -validate
|
||||
|
||||
- name: g10k-run
|
||||
image: git.unkin.net/unkin/almalinux9-g10k:20260606
|
||||
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:20260606
|
||||
commands:
|
||||
- uvx pre-commit run --all-files
|
||||
@@ -1,10 +1,10 @@
|
||||
# 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
|
||||
:sources:
|
||||
# This will clone the git repository and instantiate an environment per
|
||||
# branch in /etc/puppetlabs/code/environments
|
||||
: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'
|
||||
|
||||
Reference in New Issue
Block a user