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

Actually push everywhere, build manifests #5

Merged
merged 3 commits into from
Feb 7, 2024

Conversation

skeet70
Copy link
Member

@skeet70 skeet70 commented Feb 5, 2024

TODO:

  • README
  • write up an issue for idea of a version that can dry run

I ran this and confirmed local changes up to the point I could. I did run equivalent steps for a single manifest to do some testing of that process. Haven't run a full testing that actually pushes yet.

tag-state/calculate-tag-state.py Outdated Show resolved Hide resolved
tag-state/calculate-tag-state.py Show resolved Hide resolved
Comment on lines +256 to +279
subprocess.run(
[
"docker",
"manifest",
"create",
major_manifest_name,
f"{gcr_image}-arm64",
f"{gcr_image}-amd64",
]
)
subprocess.run(
[
"docker",
"manifest",
"create",
minor_manifest_name,
f"{gcr_image}-arm64",
f"{gcr_image}-amd64",
]
)
# the more specific annotation of the first manifest seems to carry through to the others
subprocess.run(["docker", "manifest", "push", gcr_image])
subprocess.run(["docker", "manifest", "push", major_manifest_name])
subprocess.run(["docker", "manifest", "push", minor_manifest_name])
Copy link
Contributor

Choose a reason for hiding this comment

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

Do you need to check the returncode on these subprocesses?

Copy link
Member Author

@skeet70 skeet70 Feb 6, 2024

Choose a reason for hiding this comment

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

"need" is a bit of a loaded term. No, since it's the last thing it'll try to do and the output will be in the same place I'd put it if it were to fail.

Co-authored-by: Chris Jones <chris.jones@ironcorelabs.com>
@skeet70 skeet70 merged commit 478a517 into main Feb 7, 2024
@skeet70 skeet70 deleted the calculate-tag-state-script branch February 7, 2024 23:11
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.

3 participants