Compare commits

...

9 Commits

Author SHA1 Message Date
unkinben b41d223b27 chore: bump almalinux9 image tags to 20260606
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/g10k-validate Pipeline was successful
2026-06-06 23:47:39 +10:00
unkinben 1603c6bc31 Merge pull request 'feat: validate g10k configuration' (#5) from benvin/g10k-test into master
Reviewed-on: #5
2026-03-17 18:56:54 +11:00
unkinben 53b6d458f6 feat: validate g10k configuration
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/g10k-validate Pipeline was successful
- add woodpecker workflow to validate and run g10k
2026-03-17 18:23:15 +11:00
unkinben b4ac67cda0 Merge pull request 'chore: hardlink compat cachedir' (#4) from benvin/cachedir into master
Reviewed-on: #4
2026-03-17 17:51:00 +11:00
unkinben ef9fb54c5a chore: hardlink compat cachedir
ci/woodpecker/pr/pre-commit Pipeline was successful
with kubernetes/puppet deployment, we are mounting /etc/puppetlabs/code
into a PVC. g10k hardlinks. therefore, we need the g10k cache in the
same PVC.

- set cachedir to a hardlink compat path for kubernetes
2026-03-17 17:44:00 +11:00
unkinben 225930a739 Merge pull request 'chore: use git.unkin.net' (#3) from benvin/unkin_remote into master
Reviewed-on: #3
2026-03-17 16:44:22 +11:00
unkinben 1a8772f684 chore: use git.unkin.net
ci/woodpecker/pr/pre-commit Pipeline was successful
update the source to use the endpoint via haproxy with letsencrypt
certificates. this will make it simpler to manage trust in externally
sources containers used for puppet/k8s integration

- use git.unkin.net url for unkin origin
2026-03-17 16:41:49 +11:00
unkinben 5f61188367 Merge pull request 'feat: migrate to woodpecker ci' (#2) from benvin/woodpecker_ci into master
Reviewed-on: #2
2026-03-09 01:25:35 +11:00
unkinben b2e99ae7e4 feat: migrate to woodpecker ci
ci/woodpecker/pr/pre-commit Pipeline was successful
- update build->test, change to use uvx precommit
- update pre-commit with additional checks
- remove gitea actions job
2026-03-09 01:24:31 +11:00
6 changed files with 44 additions and 37 deletions
-24
View File
@@ -1,24 +0,0 @@
name: Build
on:
pull_request:
jobs:
build:
runs-on: almalinux-8
container:
image: git.query.consul/unkin/almalinux8:latest
options: --privileged
steps:
- name: Set up environment
run: |
dnf module enable -y nodejs:20
dnf install -y make bash git nodejs python3.11
- name: Checkout code
uses: actions/checkout@v3
- name: Run pre-commit
run: |
make build
+19 -3
View File
@@ -1,13 +1,29 @@
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:
+13
View File
@@ -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
+8
View File
@@ -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
+2 -8
View File
@@ -1,9 +1,3 @@
# run pre-commit
build:
python3.11 -m venv venv
venv/bin/pip install pip --upgrade
venv/bin/pip install pre-commit
venv/bin/pre-commit run --all-files
clean:
rm -rf venv
test:
uvx pre-commit run --all-files
+2 -2
View File
@@ -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'