mauroc / squiddio_pi

squiddio_pi
3 stars 13 forks source link

Better key handling for Appveyor and Travis #66

Closed rgleason closed 4 years ago

rgleason commented 4 years ago

Key handling for Appveyor and Travis

MacOS-Travis About Line 777 place your encrypted key from github for the plugin, under Notes. I wonder if this couldn't just be a variable something like "github-key-travis-encrypted-for-squiddio", with the variable and encrypted key listed in cmakelists.txt?

Travis.yml If the above can be done, change the encryption part to a a variable, "github-key-travis-encrypted-for-squiddio",

Appveyor.yml Change the encrypted key to a variable "github-key-appveyor-encrypted-for-squiddio"? In cmakelists.txt add this variable and the section for the encrypted key?

rgleason commented 4 years ago

I tried making the encrypted key a variable https://github.com/rgleason/squiddio_pi/commit/df91ee17de088e3b1448dc168ef9465ba3b6f0a1 (perhaps incorrectly) and got https://ci.appveyor.com/project/rgleason/squiddio-pi/builds/28228500

Deploying using GitHub provider
Creating "v1.0.17-test2" release for repository "rgleason/squiddio_pi" tag "v1.0.17-test2" commit "df91ee17de088e3b1448dc168ef9465ba3b6f0a1"...Error creating GitHub release: Provider setting not found or it's value is empty. If secure setting is used please check that value was encrypted (or YAML was exported) while being logged under correct account.
Parameter name: auth_token

Well, I screwed up the var name, it should have been "github-key-appveyor-encrypted-for-squiddio" but it still doesn't work.

rgleason commented 4 years ago

The encryption value must be in the appveyor.yml file. See https://ci.appveyor.com/tools/encrypt

This form allows you to encrypt sensitive data before saving it into appveyor.yml file. Secure strings are currently supported in environment, deploy and notifications sections.

Moving the encryption keys for Travis and Appveyor is probably not possible.