Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: added cleanup step before running dist stage. #156

Merged
merged 1 commit into from
Aug 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
added cleanup step to remove 9GB of cache before running dist stage.
  • Loading branch information
vlad-diachenko committed Aug 8, 2024
commit fc5adb8313a5af5b6dd2cb9297d44d0e13c546eb
2 changes: 2 additions & 0 deletions .github/workflows/release-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ jobs:
version: "${{ needs.version.outputs.version }}"
runs-on: "ubuntu-latest"
steps:
- name: "clean up build tools cache"
run: "rm -rf /opt/hostedtoolcache"
- name: "pull code to release"
uses: "actions/checkout@v4"
with:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test-release-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ jobs:
version: "${{ needs.version.outputs.version }}"
runs-on: "ubuntu-latest"
steps:
- name: "clean up build tools cache"
run: "rm -rf /opt/hostedtoolcache"
- name: "pull code to release"
uses: "actions/checkout@v4"
with:
Expand Down
1 change: 1 addition & 0 deletions workflows/build.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ local releaseLibStep = common.releaseLibStep;
dist: function(buildImage, skipArm=true, useGCR=false, makeTargets=['dist', 'packages'])
job.new()
+ job.withSteps([
common.cleanUpBuildCache,
common.fetchReleaseRepo,
common.googleAuth,
common.setupGoogleCloudSdk,
Expand Down
4 changes: 4 additions & 0 deletions workflows/common.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@
checkout:
$.step.new('checkout', 'actions/checkout@v4'),

cleanUpBuildCache:
$.step.new('clean up build tools cache')
+ $.step.withRun('rm -rf /opt/hostedtoolcache'),

fetchReleaseRepo:
$.step.new('pull code to release', 'actions/checkout@v4')
+ $.step.with({
Expand Down
Loading