Skip to content

Conversation

tormath1
Copy link
Contributor

@tormath1 tormath1 commented Aug 31, 2022

Signed-off-by: Mathieu Tortuyaux mtortuyaux@microsoft.com


On the CI side, we need to generate a PAT for the Flatcar buildbot and pass it from Jenkins to the script.

Related to: flatcar/Flatcar#739

Signed-off-by: Mathieu Tortuyaux <mtortuyaux@microsoft.com>
@tormath1 tormath1 self-assigned this Aug 31, 2022

# Docker images are pushed in the container registry.
for a in all amd64 arm64; do
docker push "${CONTAINER_REGISTRY}/flatcar-sdk-${a}":"${docker_vernum}"
Copy link
Member

Choose a reason for hiding this comment

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

For the future: In case we build something releasable every night, I wouldn't publish it directly here in this job but do the SDK publishing in the release job which is run manually - otherwise we clutter the registry too much.
For now it's ok to do it here, no problem.

Copy link
Member

Choose a reason for hiding this comment

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

Or as Gabriel suggested, we use garbage collection to remove the unused images after one week, only keeping those that are used in the version.txt files of the releases under CHANNEL.release.flatcar-linux.net

Copy link
Contributor Author

Choose a reason for hiding this comment

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

quickly checked, but I don't see a limitation for GH Container Registry? In that case, we could simply push each built SDK, without pruning them.

Copy link
Member

Choose a reason for hiding this comment

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

Deleting development SDKs makes sense to give people a chance to mirror the registry efficiently and also helps to reduce the environmental impact ;)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I just been through the release job - I think that would make more sense to move theses lines directly into the release script.

Copy link
Member

Choose a reason for hiding this comment

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

As you like. One argument for doing it here would be that we could skip the tar ball import to create the local Docker image which takes a couple of minutes. Not sure if this needs some other changes in the pipeline and we would still want to keep the possibility to work without a registry, I think?

Copy link
Member

Choose a reason for hiding this comment

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

Should we move this to #475?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, let's do this.

@tormath1
Copy link
Contributor Author

closed in favor of: #475

@tormath1 tormath1 closed this Sep 19, 2022
@tormath1 tormath1 deleted the tormath1/sdk branch September 19, 2022 07:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants