Skip to content

Commit

Permalink
chore(devcontainer): automatically add env fron infisical
Browse files Browse the repository at this point in the history
  • Loading branch information
qwerzl committed Nov 14, 2024
1 parent 848e559 commit 73961ec
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"source=${localEnv:HOME}${localEnv:USERPROFILE}/.npmrc,target=/home/node/.npmrc,type=bind,consistency=cached"
],

"postCreateCommand": "pnpm i",
"postCreateCommand": "curl -1sLf 'https://dl.cloudsmith.io/public/infisical/infisical-cli/setup.deb.sh' | sudo -E bash && sudo apt-get update && sudo apt-get install -y infisical && infisical login && infisical export --format=dotenv-export --env=dev > .env && pnpm i",

"customizations": {
"vscode": {
Expand Down
5 changes: 5 additions & 0 deletions .infisical.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"workspaceId": "f49eef11-d4fe-46d0-8de8-e57b99d23463",
"defaultEnvironment": "",
"gitBranchToEnvironmentMapping": null
}

0 comments on commit 73961ec

Please sign in to comment.