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: import resources from git repo or archive file #628

Draft
wants to merge 5 commits into
base: dev
Choose a base branch
from

Conversation

keithmanville
Copy link
Collaborator

@keithmanville keithmanville commented Aug 21, 2024

@keithmanville
Copy link
Collaborator Author

Basic import functionality is now working. To test it with the included hello world plugin, go to the /api/v1/workflows/resourceImport endpoint in swagger, then either import via git or upload:

for git, set sourceType to "git" and gitUrl to https://github.com/usnistgov/dioptra#workflow-import

for file upload, first create an archive containing the necessary files (from the root dioptra dir in this branch)

tar -czf plugins.tar.gz -C . plugins examples/hello-world.yaml dioptra.toml

then set sourceType to "upload" and select the archive you created.

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.

Add a workflow for importing a plugin from a git repository or file upload
1 participant