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

feat: implement oci_push #38

Merged
merged 3 commits into from
Jan 3, 2023
Merged

feat: implement oci_push #38

merged 3 commits into from
Jan 3, 2023

Conversation

thesayyn
Copy link
Collaborator

@thesayyn thesayyn commented Oct 12, 2022

closes #19

@thesayyn thesayyn changed the title Oci push feat: implement oci_push Oct 12, 2022
@thesayyn thesayyn marked this pull request as ready for review January 2, 2023 17:33

while (( $# > 0 )); do
case $1 in
(-t|--tag)
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: ordering of the flag handling is reversed between tag and repository with -t|--tag and then --tags=* for tag and --repository=* and -r|--repository for repository

repository = "ghcr.io/<OWNER>/image",
default_tags = ["6.4.1-rc1"]
)
```
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should mention that you need to bazel run to push and that the tool accepts -r|--repository and -t|--tag flags so you can set the repository & tag at runtime. For tag this is particularly useful since when pushing semver versions users probably want the version to come from the latest tag on the repository and not be hard-coded in the BUILD file.

@thesayyn thesayyn merged commit 202890e into main Jan 3, 2023
alexeagle pushed a commit that referenced this pull request Mar 12, 2023
@alexeagle alexeagle deleted the oci_push branch May 4, 2023 23:29
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.

FR: implement oci_push
2 participants