Invoke-Build: PowerShell in CI/CD
summary
Invoke-Build scripts run PowerShell build tasks that aim to make laptop and CI builds identical, using incremental inputs/outputs so net restore and net build skip when up to date. Evidence: about 1,800 GitHub results and over 1,000,000 gallery downloads. Workflow includes a bootstrapping step that installs Invoke-Build, a shared invoke-build-tasks repo for reusable tasks, GitVersion for deterministic assembly versions, and container options (Earthly / Docker BuildKit) for consistent cached builds — local no-op builds complete in about 69 ms.
AI-written summary · about
chapters (11)
- 0:00Introduction
- 3:08CI/CD goals
- 5:54Why Invoke-Build
- 10:07Hello World script
- 18:41Cleaning build scripts
- 22:59Bootstrapping Invoke-Build
- 23:21Incremental builds
- 35:08Shared build tasks
- 37:55Standard build environments
- 47:08CI/CD alternatives
- 48:11Q&A
related talks
51mPowerShell module toolbox and templates for Continuous Delivery
49mPowerShell in CI/CD Pipelines: A Practical...
51mThe Build Release Pipeline Model for Mere Mortals
50mGet control of you Git: Managing PS module binaries using VSTS CI/CD and...
45mLess is More - a Build Pipeline for the Modern Age
45mLess is more—a build pipeline for the modern age
45mDon’t Stop at the PowerShell Pipeline. Build a CI/CD Pipeline for your PowerShell
44mSipping psake: Creating a Build and Release Pipeline for ...
