Files
integraci-dagger-modules/windows-deploy/README.md
T

31 lines
1.0 KiB
Markdown

# IntegraCI — Windows Deploy Dagger Module
Deploy to **Windows Server over WinRM** by running a PowerShell script on the
target host — the Windows analogue of `vm-deploy` (Pyinfra/SSH for Linux).
Covers the "Deploy Windows Server (WinRM/PowerShell → IIS / Windows Service)"
delivery branch.
## Usage
```bash
dagger call deploy \
--address 10.0.0.9 \
--script ./deploy.ps1 \
--username deployer \
--password env://WINRM_PASS
# plain HTTP (5985) instead of HTTPS (5986)
dagger call deploy --address host --script ./deploy.ps1 \
--username u --password env://P --use-https=false
```
The PowerShell `--script` runs on the host: fetch/copy the artifact, deploy to
IIS (`Import-Module WebAdministration`), or install/restart a Windows Service
(`New-Service` / `Restart-Service`). The remote status code drives success.
## Wiring
Selected via `deploy_target=windows` (`_DEPLOY_TARGET_MAP` → `windows-deploy`);
the generic CI deploy step renders the call. Uses `pywinrm` inside a container;
no vendor SDK is embedded in the platform.