Continuous Integration code signing

Is there a set of commands that I could use to code sign an macOS application deployed in a zip file?

Not having any luck following the documentation since they all refer to some steps being performed through UI.

I have an environment in Circleci where I am doing the build. Trying to now codesign the built image, I am unable to find any documentation that I can codesign completely from the command line.

I have tried
Code Block
codesign

to codesign my application, but, I am unable to get them to recognize my cert that I added using
Code Block
security add-trusted-cert -d -r trustRoot -k ~/Library/Keychains/login.keychain developerID_application.cer

Any pointers would be much appreciated.
Continuous Integration code signing
 
 
Q