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

Create pipeline to push an image to AWS upon release #3131

Merged
merged 4 commits into from
Jan 24, 2025

Conversation

jimmykarily
Copy link
Contributor

Part of: #3102

Pushes a cloud image for Ubuntu to AWS (public AMI)

What this PR does / why we need it:

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #

@jimmykarily jimmykarily force-pushed the 3102-upload-image-to-aws branch 13 times, most recently from f8045da to b1392df Compare January 17, 2025 13:23
@jimmykarily
Copy link
Contributor Author

@jimmykarily
Copy link
Contributor Author

jimmykarily commented Jan 22, 2025

TBD:

  • Which flavor(s) do we push? -> just one, it's meant to be used to reset to whatever image one wants.
  • Which k3s version(s)? -> doesn't matter (see above)
  • What region(s)? -> all of them
  • Do we cleanup? When? (how many versions back do we keep?) -> we don't need to implement cleanup in the PR

We can even merge without these questions asked and sort it out later. Just to get some image out there to start playing with it.

@jimmykarily
Copy link
Contributor Author

I removed the testing pipeline (was running on PRs) and kept only the final one that triggers on releases.

@jimmykarily jimmykarily force-pushed the 3102-upload-image-to-aws branch from 779a8f0 to 31c81fc Compare January 23, 2025 07:28
@jimmykarily jimmykarily marked this pull request as ready for review January 23, 2025 07:29
@jimmykarily jimmykarily requested a review from a team January 23, 2025 07:29
@jimmykarily jimmykarily changed the title [WIP] Create test pipeline Create test pipeline Jan 23, 2025
@jimmykarily jimmykarily changed the title Create test pipeline Create pipeline to push an image to AWS upon release Jan 23, 2025
sudo rm -rf /usr/local/lib/android # will release about 10 GB if you don't need Android
sudo rm -rf /usr/share/dotnet # will release about 20GB if you don't need .NET
df -h
./.github/release-space-from-ubuntu-runners.sh
Copy link
Member

Choose a reason for hiding this comment

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

great idea 👏

Copy link
Member

@mauromorales mauromorales left a comment

Choose a reason for hiding this comment

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

noiiiiceeee!

+ a test pipeline for the PR

Signed-off-by: Dimitris Karakasilis <[email protected]>
Signed-off-by: Dimitris Karakasilis <[email protected]>
Signed-off-by: Dimitris Karakasilis <[email protected]>
@jimmykarily jimmykarily force-pushed the 3102-upload-image-to-aws branch from 31c81fc to 6e4c1a9 Compare January 24, 2025 09:36
echo "[$region] Image '$imageID' is now public."
}

copyToAllRegions() {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@jimmykarily jimmykarily requested a review from a team January 24, 2025 09:38
@jimmykarily jimmykarily force-pushed the 3102-upload-image-to-aws branch from 6e4c1a9 to 981b803 Compare January 24, 2025 09:55
@jimmykarily jimmykarily merged commit 8830ba2 into master Jan 24, 2025
55 of 56 checks passed
@jimmykarily jimmykarily deleted the 3102-upload-image-to-aws branch January 24, 2025 11:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants