outsideris/citizen

Uploading Modules

Opened this issue · 3 comments

Is there any other way to upload a module other then the citizen cli command? I do see a route to "register a module with version", but I don't see any documentation on it. It would be helpful to be able to upload a module via API to make it easier to automate the process via pipeline.

Did you find a solution? I also am having issues uploading modules

@mpicard, I ended up writing my own python based webhook that runs the citizen cli.

You can use curl. or any other tool:

curl -n -F "owner=someone" -F "module=@module.tar.gz" https://citizen.host/v1/modules/${DEPARTMENT}/${MODULE_NAME}/aws/${MODULE_VERSION}