Skip to content

Commit

Permalink
make configurations more granular
Browse files Browse the repository at this point in the history
  • Loading branch information
fermion committed Jan 31, 2024
1 parent a59955a commit 300be52
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .env.development.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<% if (`op signin --account Sternervault --raw`.strip) == "" %># Generated by kamal envify
RAILS_MASTER_KEY=<%= `op read "op://StaffplanReduxDev/RAILS_MASTER_KEY/credential"`.strip %>
DOCKER_REGISTRY_TOKEN=<%= `op read "op://StaffplanReduxDev/KAMAL_REGISTRY_PASSWORD/credential"`.strip %>
POSTGRES_PASSWORD=<%= `op read "op://StaffplanReduxDev/POSTGRES_PASSWORD/credential"`.strip %>
STAFF_PLAN_EMAILS=<%= `op read "op://StaffplanReduxDev/STAFF_PLAN_EMAILS/credential"`.strip %>
<% else raise ArgumentError, "Session token missing" end %>

REDIS_URL=redis://localhost:6379/1
8 changes: 8 additions & 0 deletions .env.test.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<% if (`op signin --account Sternervault --raw`.strip) == "" %># Generated by kamal envify
RAILS_MASTER_KEY=<%= `op read "op://StaffplanReduxDev/RAILS_MASTER_KEY/credential"`.strip %>
DOCKER_REGISTRY_TOKEN=<%= `op read "op://StaffplanReduxDev/KAMAL_REGISTRY_PASSWORD/credential"`.strip %>
POSTGRES_PASSWORD=<%= `op read "op://StaffplanReduxDev/POSTGRES_PASSWORD/credential"`.strip %>
STAFF_PLAN_EMAILS=<%= `op read "op://StaffplanReduxDev/STAFF_PLAN_EMAILS/credential"`.strip %>
<% else raise ArgumentError, "Session token missing" end %>

REDIS_URL=redis://localhost:6379/1
File renamed without changes.
1 change: 1 addition & 0 deletions config/credentials/test.yml.enc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
OGwKRI9dH43bb+eLhmX+v9F+Wbv7gAZWZq+yJ1qSDv3y9/ec9m+v2KVt1Kod/6XNvTWIjNKHcoU/3h70HUljqKOJ2Tn37fu8knWI7WC9Wmzaab4vt6nGGBPtERjNzW5ootlNGCGv8bDl7Z/5FHJzw0cSPALA7n0knIusqGmfnplBcR2TjeRKdPmvrjlPhYbOXbxPKnfjSTWXCYdJF1u89opzLtQH6mg2Gkl1rtsSQKbbaTf/yAF2I5SkGNfhbDIYBQVZpniuAyWVQPY/xlrVjeiv1cMki8n+z8YXDtucnwU7eqNvqk7h1Q2DnHC1W6+ZR+J8jSHW3oOmrelwt0GUl5BsaYoJyFRzXr6t9WvzLkWblMiuAYCMK5cG/1i5qxeQ99vdhJEEZoyurVBtvftkW4hfO0AmfSyed5blYyQOZwbjfFgmlpc8b65nqHQN/hCJPgprYWkst/MijH+OTVNtulBDLq70TMeTuC5toHpeMJNvnFkbGbTOK2izsV1KP/1eUmIfl7U7+Isl/JW9oRnMhcq8SRPyhhYGzFkioNCLezcpkwVkMdzJX3adarNTzgK/z3obRB17DSkYnwheQR4M3ZBoTlyJ3/yrKUG7mhXb+a32qulHlgISssA0XtiZmAn0DQRnepcotHs+QMxEDqKxfxXUTlSkf9xXFqKeNj4PuPbLiqMeXr4jbdplw9ZAfpCTP9jQ7V3JE2lCuV2SrO37USDZa0n7a6/xkcwdWXevk6V3w+vB4okAQgGVWQkPUxm4722yRSwf6wqRDntaLnFuFZRl+3lgPedO7mgY0MreLUV6MwKWkAVqWldzjwQs8kTfGNFYlk3ZioGNlLKvljzhCA==--QiJngedjyOCb0s14--rhpDcTz4hGj+Fadoexa19g==
8 changes: 8 additions & 0 deletions config/deploy.development.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# kamal needs to know what environment variables it should be trying to inject
env:
secret:
- RAILS_MASTER_KEY
- POSTGRES_PASSWORD
- DOCKER_REGISTRY_TOKEN
- STAFF_PLAN_EMAILS
- REDIS_URL
8 changes: 8 additions & 0 deletions config/deploy.test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# kamal needs to know what environment variables it should be trying to inject
env:
secret:
- RAILS_MASTER_KEY
- POSTGRES_PASSWORD
- DOCKER_REGISTRY_TOKEN
- STAFF_PLAN_EMAILS
- REDIS_URL

0 comments on commit 300be52

Please sign in to comment.