-
Notifications
You must be signed in to change notification settings - Fork 173
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor large workflows into multiple jobs (#1902)
## Description This PR refactors our larger workflows to use multiple jobs to avoid accumulation on disk. ## Related Issue Fixes #N/A ## Type of change - [ ] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [X] Other (security config, docs update, etc) ## Checklist before merging - [X] Test, docs, adr added or updated as needed - [X] [Contributor Guide Steps](https://github.com/defenseunicorns/zarf/blob/main/CONTRIBUTING.md#developer-workflow) followed
- Loading branch information
Showing
8 changed files
with
147 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
name: cleanup-files | ||
description: "Cleans up files on the local system to reduce disk pressure" | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- run: | | ||
lsblk -f | ||
sudo rm -rf zarf-sbom /tmp/zarf-* src/ui/node_modules | ||
sudo env "PATH=$PATH" CI=true make delete-packages | ||
sudo build/zarf tools clear-cache | ||
sudo docker system prune --all --force | ||
lsblk -f | ||
shell: bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,28 @@ | ||
name: packages | ||
description: "Create agent image, init package and example packages" | ||
description: "Build CLI, agent image, init package and example packages" | ||
|
||
inputs: | ||
init-package: | ||
description: 'Build the init package' | ||
required: false | ||
default: 'true' | ||
build-examples: | ||
description: 'Build the example packages' | ||
required: false | ||
default: 'true' | ||
|
||
|
||
runs: | ||
using: composite | ||
steps: | ||
- run: | | ||
make build-cli-linux-amd init-package build-examples ARCH=amd64 | ||
make build-cli-linux-amd ARCH=amd64 | ||
shell: bash | ||
- run: | | ||
make init-package ARCH=amd64 | ||
shell: bash | ||
if: ${{ inputs.init-package == 'true' }} | ||
- run: | | ||
make build-examples ARCH=amd64 | ||
shell: bash | ||
if: ${{ inputs.build-examples == 'true' }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters