Skip to content

chore: Update publish docs #2

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

Merged
merged 1 commit into from
Jan 26, 2024
Merged

chore: Update publish docs #2

merged 1 commit into from
Jan 26, 2024

Conversation

erezrokah
Copy link
Member

Similar to cloudquery/python-plugin-template#5 updates the template to better explain how to publish the docker image to the CloudQuery registry

@@ -0,0 +1,3 @@
# JavaScript Source Plugin Template
Copy link
Member Author

Choose a reason for hiding this comment

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

At least once doc file is needed for publishing to work

@@ -27,7 +27,6 @@
"scripts": {
"dev": "ts-node --esm src/main.ts serve",
"build": "rm -rf dist && tsc",
"package:container": "docker build -t cq-js-sample:latest .",
Copy link
Member Author

Choose a reason for hiding this comment

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

This was outdated, the JS SDK will run docker build instead

@@ -85,12 +85,12 @@ export const newSamplePlugin = () => {
spec,
{ noConnection },
) => {
pluginClient.spec = parseSpec(spec);
Copy link
Member Author

@erezrokah erezrokah Jan 26, 2024

Choose a reason for hiding this comment

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

the package command and some others pass an empty spec and noConnection: true so we should skip parsing the spec and initializing the client for noConnection: true

@erezrokah erezrokah requested a review from pilvikala January 26, 2024 12:32
@erezrokah erezrokah added the automerge Add to automerge PRs once requirements are met label Jan 26, 2024
@erezrokah erezrokah enabled auto-merge (squash) January 26, 2024 12:32
@erezrokah erezrokah merged commit 8991932 into main Jan 26, 2024
@erezrokah erezrokah deleted the chore/add_publish_docs branch January 26, 2024 12:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge Add to automerge PRs once requirements are met
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants