-
Notifications
You must be signed in to change notification settings - Fork 114
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
adding support for adding secets to deployment #3
Conversation
Tested and verified working as expected on my own environment. Thank you! |
Co-authored-by: Matt <matt@mattrigg.dev>
It seems like the latest change to the action.yml broke the functionality. I am getting this error:
|
I've fixed the errors and added support for things like updating secrets on updates in my fork. Might do another PR with it eventually but feel free to use it until then. |
flyctl launch --now --copy-config --name "$app" --image "$image" --region "$region" --org "$org" | ||
flyctl launch --no-deploy --copy-config --name "$app" --image "$image" --region "$region" --org "$org" | ||
if [ -n "$INPUT_SECRETS" ]; then | ||
echo $INPUT_SECRETS | tr " " "\n" | flyctl secrets import --app "$app" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wouldn't this break with secrets that contain spaces?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would, but I think that's ok for now. I'm going to go ahead and merge this and we can make the new option more resilient on a second pass.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mrkurt My secret has spaces and the action doesn't work
GOOGLE_PRIVATE_KEY=-----BEGIN PRIVATE KEY-----\nxxx\n-----END PRIVATE KEY-----\n
Is there any walkaround?
Fix flyctl link in README.md
Fixes #2