-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added support for arbitrary container registry. (#24)
Added support for arbitrary container registry. Recall that `weaver kube deploy` needs to build and upload a container image to some registry. Before this PR, `weaver kube deploy` uploaded images to Docker Hub. In PR #21, @giautm suggested we add support for arbitrary container registries. This PR implements his idea. Specifically, the user provides a `image` field inside the `"kube"` section of the config file. For example, given the following config file: ```toml [serviceweaver] binary = "./foo" [kube] image = "my_username/foo" ``` `weaver kube deploy` will run `docker push my_username/foo:TAG`. The user can provide any registry that is compatible with `docker push`. Some examples: - Docker Hub: USERNAME/NAME - Google Artifact Registry: LOCATION-docker.pkg.dev/PROJECT-ID/REPOSITORY/NAME - GitHub Container Registry: ghcr.io/NAMESPACE/NAME
- Loading branch information
1 parent
fea518f
commit aabf3d5
Showing
3 changed files
with
59 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters