Skip to content

feat: Support publishing to a private docker registry#15698

Merged
kodiakhq[bot] merged 9 commits into
cloudquery:mainfrom
erezrokah:feat/publish_to_docker
Dec 29, 2023
Merged

feat: Support publishing to a private docker registry#15698
kodiakhq[bot] merged 9 commits into
cloudquery:mainfrom
erezrokah:feat/publish_to_docker

Conversation

@erezrokah
Copy link
Copy Markdown
Member

@erezrokah erezrokah commented Dec 14, 2023

Summary

Example (images generated with cloudquery/plugin-sdk-javascript#106)
image

The images were generated by cloudquery/plugin-sdk-javascript#106 (replacing registry.cloudquery.io with ghcr.io)

TODO

return nil
}

func PublishToDockerRegistry(ctx context.Context, token, distDir string, pkgJSON PackageJSONV1) error {
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This is the bulk of the change

)
}

func (pr *dockerProgressReader) Read(_ []byte) (n int, err error) {
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@erezrokah erezrokah force-pushed the feat/publish_to_docker branch from d6b3842 to 78cde21 Compare December 15, 2023 09:21
@erezrokah erezrokah requested review from a team and hermanschaaf and removed request for a team and yevgenypats December 15, 2023 09:21
Comment thread cli/cmd/plugin_publish.go
return errors.New("invalid plugin name. Must be in format <team_name>/<plugin_name>")
}
teamName, pluginName = parts[0], parts[1]
pkgJSON.Team, pkgJSON.Name = teamName, pluginName
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This is backwards compatibility code from when we had plugin publish <team>/<name> instead of inside package.json.

I cleaned up some of the arguments to UploadPluginBinary to pass only the package JSON so we need to set these here

@erezrokah
Copy link
Copy Markdown
Member Author

7a5784c makes it so we merge all platforms into a single image:
image

@erezrokah erezrokah requested review from maaarcelino and mnorbury and removed request for hermanschaaf and mnorbury December 18, 2023 10:51
Comment thread cli/internal/publish/plugins.go
Comment thread cli/internal/publish/plugins.go
@erezrokah erezrokah force-pushed the feat/publish_to_docker branch from 2f48e2e to 95c26f3 Compare December 29, 2023 10:31
@erezrokah erezrokah added the automerge Automatically merge once required checks pass label Dec 29, 2023
@kodiakhq kodiakhq Bot merged commit 36e0351 into cloudquery:main Dec 29, 2023
kodiakhq Bot pushed a commit that referenced this pull request Jan 2, 2024
🤖 I have created a release *beep* *boop*
---


## [4.4.0](cli-v4.3.6...cli-v4.4.0) (2024-01-02)


### Features

* Offline licensing support ([#15831](#15831)) ([7eab631](7eab631))
* Support publishing to a private docker registry ([#15698](#15698)) ([36e0351](36e0351))


### Bug Fixes

* **deps:** Update github.com/apache/arrow/go/v15 digest to 7c3480e ([#15904](#15904)) ([a3ec012](a3ec012))
* **deps:** Update github.com/gomarkdown/markdown digest to 1d6d208 ([#15907](#15907)) ([86d29a9](86d29a9))
* **deps:** Update golang.org/x/exp digest to 02704c9 ([#15909](#15909)) ([dfe32d2](dfe32d2))
* **deps:** Update module github.com/cloudquery/plugin-pb-go to v1.15.0 ([#15851](#15851)) ([f51f12d](f51f12d))
* **deps:** Update module github.com/cloudquery/plugin-pb-go to v1.16.0 ([#15856](#15856)) ([0d63c66](0d63c66))
* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.24.0 ([#15863](#15863)) ([47d7899](47d7899))
* **deps:** Update module github.com/prometheus/client_golang to v1.11.1 [SECURITY] ([#15855](#15855)) ([676805b](676805b))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/cli automerge Automatically merge once required checks pass

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants