You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have it setup as that so I can deploy from GitHub Actions (using the DATABASE_URL from the GitHub secrets storage), but also can deploy it locally using secrets stored on my personal 1Password account.
When upgrading to Kamal v2, I created the following new .kamal/secrets:
However, I wasn't able to replicate the preference for an existing $DATABASE_URL for deploying from GitHub Actions. I tried this but it didn't work: DATABASE_URL=${DATABASE_URL:-$(op read --no-newline "op://Pet Project/Supabase/url")}
Any suggestions on how to migrate this feature from v1 to v2?
As a note, for now I simply have a .kamal/secrets-gha file with
DATABASE_URL=$DATABASE_URL
and before the kamal deploy instruction on the GitHub workflow I have a instruction to run cp .kamal/secrets-gha .kamal/secrets so it loads it from the correct place.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
On Kamal v1, I had the following on
.env.erb
:I have it setup as that so I can deploy from GitHub Actions (using the DATABASE_URL from the GitHub secrets storage), but also can deploy it locally using secrets stored on my personal 1Password account.
When upgrading to Kamal v2, I created the following new
.kamal/secrets
:DATABASE_URL=$(op read --no-newline "op://Pet Project/Supabase/url")
However, I wasn't able to replicate the preference for an existing $DATABASE_URL for deploying from GitHub Actions. I tried this but it didn't work:
DATABASE_URL=${DATABASE_URL:-$(op read --no-newline "op://Pet Project/Supabase/url")}
Any suggestions on how to migrate this feature from v1 to v2?
As a note, for now I simply have a
.kamal/secrets-gha
file withand before the kamal deploy instruction on the GitHub workflow I have a instruction to run
cp .kamal/secrets-gha .kamal/secrets
so it loads it from the correct place.Beta Was this translation helpful? Give feedback.
All reactions