Merge pull request 'Enhancement: Deploy Proxmox infra automatically on merge' (#51) from enhancement/auto-deploy-proxmox-infra into main
Deploy Proxmox Infra / Pulumi Preview (push) Skipped
Deploy k8s Infra / Pulumi Preview (push) Skipped
Deploy k8s Apps / Pulumi Preview (push) Skipped
Deploy Monitoring / Pulumi Preview (push) Skipped
Deploy Proxmox Infra / Pulumi Deploy (push) Successful in 1m46s
Deploy k8s Infra / Pulumi Deploy (push) Successful in 48s
Deploy Monitoring / Pulumi Deploy (push) Successful in 44s
Deploy k8s Apps / Pulumi Deploy (push) Successful in 38s

This commit was merged in pull request #51.
This commit is contained in:
claude-bot Bot committed 2026-11-22 19:21:35 +01:00
commit 339dcdd214
2 files changed
+16 -5

No files matched your search

+11 -1
View File
@@ -3,6 +3,13 @@ name: Deploy Proxmox Infra
on:
workflow_dispatch:
push:
branches:
- main
paths:
- "01-proxmox-infra/**"
- ".gitea/workflows/01-deploy-proxmox-infra.yaml"
pull_request:
branches:
- main
@@ -51,7 +58,7 @@ jobs:
deploy:
name: Pulumi Deploy
runs-on: ubuntu-latest
if: github.event_name == 'workflow_dispatch'
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
steps:
- name: Checkout Code
uses: actions/checkout@v4
@@ -75,7 +82,10 @@ jobs:
run: pulumi package add terraform-provider marshallford/pfsense 0.22.0
working-directory: 01-proxmox-infra
# Manual runs only: a refresh that finds a VM missing drops it from state,
# and `up` would then create a blank replacement without review.
- name: Refresh State
if: github.event_name == 'workflow_dispatch'
run: |
pulumi login "$PULUMI_BACKEND_URL"
pulumi refresh --yes --stack dev \
+5 -4
View File
@@ -141,7 +141,7 @@ const pveNodes = pveNodeSeeds
},
],
},
{ provider: n.provider, ignoreChanges: ["disks"] },
{ provider: n.provider, protect: true, ignoreChanges: ["disks"] },
),
}));
@@ -291,7 +291,7 @@ const k3sVms = nodeConfigs.map(
agent: { enabled: true, timeout: "30s" },
cdrom: { fileId: "none" },
started: false,
stopOnDestroy: true,
rebootAfterUpdate: false,
},
{
provider: node.host.provider,
@@ -322,7 +322,7 @@ k3sVms.forEach((vmResource, i) => {
ipAddress: nodeConfigs[i].ip,
hostname: nodeConfigs[i].name,
},
{ dependsOn: vmResource, provider: pfSenseProvider },
{ dependsOn: vmResource, provider: pfSenseProvider, protect: true },
);
});
@@ -357,7 +357,7 @@ const ansibleDhcp = new pfsense.Dhcpv4Staticmapping(
ipAddress: ansibleIp,
hostname: "ansible",
},
{ provider: pfSenseProvider },
{ provider: pfSenseProvider, protect: true },
);
new proxmox.ContainerLegacy( // NOSONAR typescript:S1848
@@ -396,6 +396,7 @@ new proxmox.ContainerLegacy( // NOSONAR typescript:S1848
provider: ansibleHost.provider,
dependsOn: ansibleDhcp,
retainOnDelete: true,
protect: true,
},
);