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

adding support for adding secets to deployment #3

Merged
merged 12 commits into from
Sep 13, 2022

Conversation

nicksrandall
Copy link
Contributor

Fixes #2

action.yml Outdated Show resolved Hide resolved
@mattrigg9
Copy link
Contributor

Tested and verified working as expected on my own environment. Thank you!

Co-authored-by: Matt <matt@mattrigg.dev>
@Jrubensson
Copy link

Jrubensson commented Jun 17, 2022

It seems like the latest change to the action.yml broke the functionality. I am getting this error:

Error: nicksrandall/fly-pr-review-apps/main/action.yml (Line: 27, Col: 18):
Error: nicksrandall/fly-pr-review-apps/main/action.yml (Line: 27, Col: 18): Unrecognized named-value: 'secrets'. Located at position 1 within expression: secrets.FIRST_SECRET
Error: Fail to load nicksrandall/fly-pr-review-apps/main/action.yml

@nervetattoo
Copy link

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.

https://github.com/nervetattoo/fly-pr-review-apps

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"

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?

Copy link
Member

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.

Copy link

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?

@mrkurt mrkurt merged commit 5d5f1c2 into superfly:main Sep 13, 2022
steph-crown referenced this pull request in steph-crown/fly-pr-review-apps Jan 16, 2023
steph-crown referenced this pull request in steph-crown/fly-pr-review-apps Jan 16, 2023
steph-crown referenced this pull request in steph-crown/fly-pr-review-apps Jan 16, 2023
steph-crown referenced this pull request in steph-crown/fly-pr-review-apps Jan 16, 2023
steph-crown referenced this pull request in steph-crown/fly-pr-review-apps Jan 16, 2023
steph-crown referenced this pull request in steph-crown/fly-pr-review-apps Jan 16, 2023
steph-crown referenced this pull request in steph-crown/fly-pr-review-apps Jan 16, 2023
steph-crown referenced this pull request in steph-crown/fly-pr-review-apps Jan 16, 2023
steph-crown referenced this pull request in steph-crown/fly-pr-review-apps Jan 16, 2023
steph-crown referenced this pull request in steph-crown/fly-pr-review-apps Jan 16, 2023
steph-crown referenced this pull request in steph-crown/fly-pr-review-apps Jan 16, 2023
steph-crown referenced this pull request in steph-crown/fly-pr-review-apps Jan 16, 2023
steph-crown referenced this pull request in steph-crown/fly-pr-review-apps Jan 17, 2023
steph-crown referenced this pull request in steph-crown/fly-pr-review-apps Jan 17, 2023
steph-crown referenced this pull request in steph-crown/fly-pr-review-apps Jan 18, 2023
steph-crown referenced this pull request in steph-crown/fly-pr-review-apps Jan 18, 2023
steph-crown referenced this pull request in steph-crown/fly-pr-review-apps Jan 18, 2023
steph-crown referenced this pull request in steph-crown/fly-pr-review-apps Jan 18, 2023
steph-crown referenced this pull request in steph-crown/fly-pr-review-apps Jan 18, 2023
steph-crown referenced this pull request in steph-crown/fly-pr-review-apps Jan 18, 2023
steph-crown referenced this pull request in steph-crown/fly-pr-review-apps Jan 18, 2023
steph-crown referenced this pull request in steph-crown/fly-pr-review-apps Jan 18, 2023
steph-crown referenced this pull request in steph-crown/fly-pr-review-apps Jan 18, 2023
amos-kibet referenced this pull request in amos-kibet/fly-preview-apps Apr 17, 2023
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.

Usage with secrets
7 participants