Skip to content

Commit

Permalink
Fix some issues with releases running out of space (#1785)
Browse files Browse the repository at this point in the history
## Description

This fixes issues with releases running out of space.

## 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
Racer159 authored Jun 5, 2023
1 parent eb941ee commit 5e709a7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ jobs:
sudo rm -rf zarf-sbom /tmp/zarf-*
sudo env "PATH=$PATH" CI=true make delete-packages
sudo build/zarf tools clear-cache
sudo docker system prune --all
go clean -cache
lsblk -f
# Builds init packages since GoReleaser won't handle this for us
- name: Create release time CVE report
Expand Down
6 changes: 3 additions & 3 deletions src/test/e2e/50_oci_package_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ var badRef = registry.Reference{

func (suite *RegistryClientTestSuite) SetupSuite() {
suite.Assertions = require.New(suite.T())
// spin up a local registry
e2e.SetupDockerRegistry(suite.T(), 5000)
suite.Reference.Registry = "localhost:5000"
suite.PackagesDir = "build"

e2e.SetupDockerRegistry(suite.T(), 555)
suite.Reference.Registry = "localhost:555"
}

func (suite *RegistryClientTestSuite) TearDownSuite() {
Expand Down
3 changes: 2 additions & 1 deletion src/test/e2e/52_oci_compose_differential_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,12 @@ var (
func (suite *OCIDifferentialSuite) SetupSuite() {
suite.tmpdir = suite.T().TempDir()
suite.Assertions = require.New(suite.T())
suite.Reference.Registry = "localhost:555"

differentialPackageName = fmt.Sprintf("zarf-package-podinfo-with-oci-flux-%s-v0.24.0-differential-v0.25.0.tar.zst", e2e.Arch)
normalPackageName = fmt.Sprintf("zarf-package-podinfo-with-oci-flux-%s-v0.24.0.tar.zst", e2e.Arch)

_ = e2e.SetupDockerRegistry(suite.T(), 555)
suite.Reference.Registry = "localhost:555"
}

func (suite *OCIDifferentialSuite) TearDownSuite() {
Expand Down

0 comments on commit 5e709a7

Please sign in to comment.