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

Clean up CI scripts and prune Docker images between builds #4815

Merged
merged 2 commits into from
Oct 7, 2023

Conversation

yurishkuro
Copy link
Member

Which problem is this PR solving?

  • Current ci-release workflow is running out of disk space

Description of the changes

How was this change tested?

  • Cannot test until merged

Signed-off-by: Yuri Shkuro <github@ysh.us>
@yurishkuro yurishkuro requested a review from a team as a code owner October 7, 2023 03:07
@yurishkuro yurishkuro requested a review from joe-elliott October 7, 2023 03:07
@@ -2,7 +2,6 @@

set -exu

BRANCH=${BRANCH:?'missing BRANCH env var'}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not used in this script

Signed-off-by: Yuri Shkuro <github@ysh.us>
@@ -26,5 +26,4 @@ if [[ $body != *"Rides On Demand"* ]]; then
fi
docker rm -f $CID

BRANCH=${BRANCH:?'missing BRANCH env var'}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not used in this script

temp_file=$(mktemp)
trap "rm -f ${temp_file}" EXIT
release_url="https://github.com/jaegertracing/jaeger-ui/releases/download/${LAST_TAG}/assets.tar.gz"
release_url="https://github.com/jaegertracing/jaeger-ui/releases/download/${last_tag}/assets.tar.gz"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just a refactoring to use lowercase names for variables

@yurishkuro yurishkuro merged commit 21e45b0 into jaegertracing:main Oct 7, 2023
27 of 28 checks passed
@yurishkuro yurishkuro deleted the cleanup branch October 7, 2023 03:09
Comment on lines +74 to +75
docker buildx prune --all --verbose
docker system prune
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We might need to add --force for each of these to avoid being prompted for confirmation.

@yurishkuro yurishkuro added the changelog:ci Change related to continuous integration / testing label Nov 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog:ci Change related to continuous integration / testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants