Skip to content

Commit c9de225

Browse files
committed
update renovate
1 parent d4a4048 commit c9de225

File tree

3 files changed

+19
-14
lines changed

3 files changed

+19
-14
lines changed

.gitlab/ci/opentofu.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -108,11 +108,14 @@ tofu-plan:
108108
# Riassunto delle modifiche
109109
echo "=== RIASSUNTO MODIFICHE ==="
110110
if [ -s plan.json ]; then
111-
CHANGES=$(jq -r '.resource_changes[]? | "\(.address): \(.change.actions | join(","))"' plan.json 2>/dev/null || echo "Nessuna modifica")
111+
CHANGES=$(jq -r '.resource_changes[]? |
112+
"\(.address): \(.change.actions | join(","))"' \
113+
plan.json 2>/dev/null || echo "Nessuna modifica")
112114
echo "$CHANGES"
113-
115+
114116
# Conta le risorse
115-
RESOURCES_COUNT=$(jq '.resource_changes | length' plan.json 2>/dev/null || echo "0")
117+
RESOURCES_COUNT=$(jq '.resource_changes | length' \
118+
plan.json 2>/dev/null || echo "0")
116119
echo "Totale risorse da modificare: $RESOURCES_COUNT"
117120
else
118121
echo "Nessuna modifica rilevata"
@@ -138,7 +141,7 @@ tofu-apply:
138141
stage: apply
139142
script: |
140143
echo "=== Applicazione modifiche Pi-hole DNS ==="
141-
144+
142145
# Verifica che il piano esista
143146
if [ ! -f plan.tfplan ]; then
144147
echo "ERRORE: File del piano non trovato!"
@@ -164,7 +167,7 @@ tofu-apply:
164167
# Salva gli output
165168
echo "=== OUTPUT FINALE ==="
166169
tofu output -json > terraform_output.json || echo "{}" > terraform_output.json
167-
170+
168171
if [ -s terraform_output.json ]; then
169172
echo "Output salvati:"
170173
cat terraform_output.json | jq . || cat terraform_output.json

.gitlab/ci/templates/update_service_ansible.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
.update_service_template:
23
stage: update_services
34
image:

renovate.json

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,24 +25,19 @@
2525
"internalChecksFilter": "flexible",
2626

2727
"ignorePaths": [
28-
"**/kubernetes/applications/archived/**",
29-
"**/opentofu/archived/**",
28+
"**/archived/**",
3029
"docs/**"
3130
],
3231

33-
"docker": {
34-
"pinDigests": true
35-
},
36-
3732
"docker-compose": {
38-
"fileMatch": [
33+
"managerFilePatterns": [
3934
"(^|/)docker-compose[^/]*\\.ya?ml$",
4035
"(^|/)compose[^/]*\\.ya?ml$"
4136
]
4237
},
4338

4439
"kubernetes": {
45-
"fileMatch": [
40+
"managerFilePatterns": [
4641
"kubernetes/.+\\.ya?ml$"
4742
]
4843
},
@@ -51,7 +46,7 @@
5146
{
5247
"customType": "regex",
5348
"description": "Aggiorna immagini Docker in template Jinja2/Ansible",
54-
"fileMatch": [
49+
"managerFilePatterns": [
5550
"(^|/)docker-compose[^/]*\\.ya?ml\\.j2$"
5651
],
5752
"matchStrings": [
@@ -63,6 +58,12 @@
6358
],
6459

6560
"packageRules": [
61+
{
62+
"matchCategories": [
63+
"docker"
64+
],
65+
"pinDigests": true
66+
},
6667
{
6768
"description": "Immagini quay.io con digest pinning",
6869
"matchDatasources": ["docker"],

0 commit comments

Comments
 (0)