Skip to content

Commit 2fd0eae

Browse files
committed
lint
1 parent 5f9cd2c commit 2fd0eae

File tree

82 files changed

+188
-127
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

82 files changed

+188
-127
lines changed

.github/workflows/gh-pages.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1+
---
12
name: gh-pages
23
on:
34
push:
45
branches:
56
- main
6-
7+
78
permissions:
89
contents: write
910
jobs:
@@ -18,7 +19,7 @@ jobs:
1819
- uses: actions/setup-python@v5
1920
with:
2021
python-version: 3.x
21-
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
22+
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
2223
- uses: actions/cache@v4
2324
with:
2425
key: mkdocs-material-${{ env.cache_id }}

.gitlab-ci.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
include:
2+
include:
33
- local: '.gitlab/ci/invidious.yml'
44

55
stages:
@@ -39,10 +39,12 @@ sync-to-clean:
3939
COMMIT_MESSAGE=$(git log -1 --pretty=format:"%s")
4040
4141
# Step 2: Clonare il repository homelab-clean utilizzando il token CI già disponibile
42-
git clone https://${GIT_USERNAME}:${SYNC_PAT_TOKEN}@${CI_SERVER_HOST}/${GIT_USERNAME}/homelab-clean.git /tmp/homelab-clean
42+
git clone https://${GIT_USERNAME}:${SYNC_PAT_TOKEN}@${CI_SERVER_HOST}/${GIT_USERNAME}/homelab-clean.git \
43+
/tmp/homelab-clean
4344
4445
# Step 3: Eliminare tutto tranne la cartella .git dal repository clonato
45-
find /tmp/homelab-clean -mindepth 1 -path "/tmp/homelab-clean/.git" -prune -o -exec rm -rf {} \; 2>/dev/null || true
46+
find /tmp/homelab-clean -mindepth 1 -path "/tmp/homelab-clean/.git" \
47+
-prune -o -exec rm -rf {} \; 2>/dev/null || true
4648
4749
# Step 4: Copiare il contenuto del repository attuale (tranne .git) nel repository clonato
4850
rsync -av --exclude='.git' $CI_PROJECT_DIR/ /tmp/homelab-clean/
@@ -66,7 +68,8 @@ sync-to-clean:
6668
fi
6769
6870
# Maschera la mail
69-
find . -type f \( -name "*.yml" -o -name "*.yaml" -o -name "*.md" -o -name "*.j2" -o -name "*.json" \) -exec sed -i "s/$(echo ${EMAIL_TO_MASK} | sed 's/[\/&]/\\&/g')/[email protected]/g" {} \;
71+
find . -type f \( -name "*.yml" -o -name "*.yaml" -o -name "*.md" -o -name "*.j2" -o -name "*.json" \) \
72+
-exec sed -i "s/$(echo ${EMAIL_TO_MASK} | sed 's/[\/&]/\\&/g')/[email protected]/g" {} \;
7073
7174
# Step 6: Commit e push delle modifiche con lo stesso autore e messaggio originale
7275
git add .

.gitlab/ci/invidious.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
include:
23
- project: 'devops/cicd'
34
ref: main
@@ -14,7 +15,7 @@ update_invidious:
1415
image: docker:latest
1516
services:
1617
- docker:dind
17-
extends:
18+
extends:
1819
- .rules_update_invidious
1920
- .ssh_setup
2021
variables:

.yamllint

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,11 @@ extends: default
33

44
rules:
55
line-length:
6-
max: 120
76
level: warning
7+
max: 120
8+
allow-non-breakable-words: true
9+
ignore: |
10+
^ *args:
811

912
indentation:
1013
spaces: 2

ansible/roles/apt/tasks/main.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
- name: Update and upgrade
23
ansible.builtin.apt:
34
upgrade: dist

ansible/roles/argocd/tasks/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
- name: Create namespace
23
kubernetes.core.k8s:
34
name: "{{ argocd.namespace }}"

ansible/roles/argocd/templates/repository.yaml.j2

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
apiVersion: v1
23
kind: Secret
34
metadata:

ansible/roles/cni-cilium-upgrade/tasks/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
- name: Check current Cilium version
23
ansible.builtin.shell: kubectl -n kube-system get ds cilium -o jsonpath='{.spec.template.spec.containers[0].image}'
34
environment:

ansible/roles/cni-cilium/tasks/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
- name: Get latest Cilium CLI version
23
ansible.builtin.uri:
34
url: "https://raw.githubusercontent.com/cilium/cilium-cli/main/stable.txt"

ansible/roles/containerd/tasks/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
- name: Install containerd
23
ansible.builtin.apt:
34
name: containerd

0 commit comments

Comments
 (0)