Skip to content

Commit

Permalink
add script to collect env vars from repo
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentporte committed Dec 19, 2024
1 parent d80174c commit 10cf3d1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions clevercloud/pre_build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
git clone "$ITOU_SECRETS_HTTPS_REPO_URL" secrets-vault
sops -d secrets-vault/c1/"$ENVIRONMENT".enc.env > .env
4 changes: 4 additions & 0 deletions clevercloud/pre_run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
cd secrets-vault || exit
git pull
cd - || exit
sops -d secrets-vault/c1/"$ENVIRONMENT".enc.env > .env

0 comments on commit 10cf3d1

Please sign in to comment.